public class KeyedCollection<K,V> extends AbstractCollection<V>
| Constructor and Description |
|---|
KeyedCollection() |
KeyedCollection(Collection<? extends V> c) |
KeyedCollection(int initialCapacity) |
KeyedCollection(KeyExtractor<? extends K,? super V> keyExtractor) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(V value) |
void |
clear() |
protected K |
getKey(V value) |
boolean |
isEmpty() |
Iterator<V> |
iterator() |
int |
size() |
Map<K,V> |
toMap()
Get the underlying map used by this collection.
|
String |
toString() |
addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArrayclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCodepublic KeyedCollection()
public KeyedCollection(KeyExtractor<? extends K,? super V> keyExtractor)
public KeyedCollection(Collection<? extends V> c)
public KeyedCollection(int initialCapacity)
public Map<K,V> toMap()
public boolean add(V value)
add in interface Collection<V>add in class AbstractCollection<V>public Iterator<V> iterator()
iterator in interface Iterable<V>iterator in interface Collection<V>iterator in class AbstractCollection<V>public int size()
size in interface Collection<V>size in class AbstractCollection<V>public boolean isEmpty()
isEmpty in interface Collection<V>isEmpty in class AbstractCollection<V>public void clear()
clear in interface Collection<V>clear in class AbstractCollection<V>public String toString()
toString in class AbstractCollection<V>Copyright © 1999–2016 The Apache Software Foundation. All rights reserved.