/** * Returns a collection, which may contain duplicates, of all keys. The number * of times a key appears in the returned multiset equals the number of * mappings the key has in the multimap. Duplicate keys appear consecutively * in the multiset's iteration order. */ public ImmutableMultiset<K> keys() { ImmutableMultiset<K> result = keys; return (result == null) ? (keys = createKeys()) : result; }
/** * Returns a collection, which may contain duplicates, of all keys. The number * of times a key appears in the returned multiset equals the number of * mappings the key has in the multimap. Duplicate keys appear consecutively * in the multiset's iteration order. */ public ImmutableMultiset<K> keys() { ImmutableMultiset<K> result = keys; return (result == null) ? (keys = createKeys()) : result; }
/** * Returns a collection, which may contain duplicates, of all keys. The number * of times a key appears in the returned multiset equals the number of * mappings the key has in the multimap. Duplicate keys appear consecutively * in the multiset's iteration order. */ public ImmutableMultiset<K> keys() { ImmutableMultiset<K> result = keys; return (result == null) ? (keys = createKeys()) : result; }
/** * Returns a collection, which may contain duplicates, of all keys. The number * of times a key appears in the returned multiset equals the number of * mappings the key has in the multimap. Duplicate keys appear consecutively * in the multiset's iteration order. */ public ImmutableMultiset<K> keys() { ImmutableMultiset<K> result = keys; return (result == null) ? (keys = createKeys()) : result; }
/** * Returns a collection, which may contain duplicates, of all keys. The number * of times a key appears in the returned multiset equals the number of * mappings the key has in the multimap. Duplicate keys appear consecutively * in the multiset's iteration order. */ @Override public ImmutableMultiset<K> keys() { ImmutableMultiset<K> result = keys; return (result == null) ? (keys = createKeys()) : result; }