E - element type of this setW - element type of the wrapped setpublic class ConvertedSet<E,W> extends AbstractIterationSet<E>
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E obj) |
void |
clear() |
boolean |
contains(Object obj) |
Converter<E,W> |
getConverter() |
boolean |
isEmpty()
Overridden in
AbstractIterationSet to minimize the use of AbstractIterationSet.size(). |
Iterator<E> |
iterator() |
boolean |
remove(Object obj) |
int |
size()
Calculate size.
|
equals, hashCode, toArray, toArrayremoveAlladdAll, containsAll, retainAll, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, containsAll, retainAllpublic boolean contains(Object obj)
contains in interface Collection<E>contains in interface Set<E>contains in class AbstractCollection<E>public boolean add(E obj)
add in interface Collection<E>add in interface Set<E>add in class AbstractCollection<E>public boolean remove(Object obj)
remove in interface Collection<E>remove in interface Set<E>remove in class AbstractCollection<E>public void clear()
clear in interface Collection<E>clear in interface Set<E>clear in class AbstractCollection<E>public boolean isEmpty()
AbstractIterationSetAbstractIterationSet to minimize the use of AbstractIterationSet.size().isEmpty in interface Collection<E>isEmpty in interface Set<E>isEmpty in class AbstractIterationSet<E>public int size()
AbstractIterationSet
The implementation in AbstractIterationSet iterates through all of the elements.
size in interface Collection<E>size in interface Set<E>size in class AbstractIterationSet<E>Copyright © 2016. All rights reserved.