ELEMENTTYPE - Element type@NotThreadSafe public class WrappedCollection<ELEMENTTYPE> extends Object implements ICommonsCollection<ELEMENTTYPE>
Set. It may be used to wrap any kind of
Set and overwrite single methods, e.g. for logging.| Constructor and Description |
|---|
WrappedCollection(Collection<ELEMENTTYPE> aSet) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(ELEMENTTYPE aElement) |
boolean |
addAll(Collection<? extends ELEMENTTYPE> aElements) |
void |
clear() |
boolean |
contains(Object aElement) |
boolean |
containsAll(Collection<?> aElements) |
boolean |
equals(Object o) |
protected Collection<ELEMENTTYPE> |
getSource() |
int |
hashCode() |
boolean |
isEmpty() |
Iterator<ELEMENTTYPE> |
iterator() |
boolean |
remove(Object aElement) |
boolean |
removeAll(Collection<?> aElements) |
boolean |
retainAll(Collection<?> aElements) |
int |
size() |
Object[] |
toArray() |
<ARRAYELEMENTTYPE> |
toArray(ARRAYELEMENTTYPE[] a) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, addAll, addAll, addAll, addAll, addAll, addAll, addAll, addAllMapped, addAllMapped, addAllMapped, addAllMapped, addAllMapped, addAllMapped, addIf, addIfNotNull, addObject, getAsUnmodifiable, getAtIndex, getAtIndex, getAtIndex, getAtIndex, getAtIndexMapped, getAtIndexMapped, getAtIndexMapped, getAtIndexMapped, getCopyAsList, getCount, getSorted, isNotEmpty, iterator2, removeAll, removeObject, set, setAll, setAllparallelStream, removeIf, spliterator, streamcontainsAny, containsNone, containsOnly, findAll, findAllInstanceOf, findAllMapped, findAllMapped, findAllMapped, findFirst, findFirst, findFirstMapped, findFirstMapped, forEach, forEach, forEachBreakable, getIteratorCount, getIteratorCountpublic WrappedCollection(@Nonnull Collection<ELEMENTTYPE> aSet)
@Nonnull @ReturnsMutableObject(value="design") @CodingStyleguideUnaware protected Collection<ELEMENTTYPE> getSource()
public boolean add(@Nullable ELEMENTTYPE aElement)
add in interface Collection<ELEMENTTYPE>public boolean addAll(@Nonnull Collection<? extends ELEMENTTYPE> aElements)
addAll in interface Collection<ELEMENTTYPE>public void clear()
clear in interface Collection<ELEMENTTYPE>public boolean contains(Object aElement)
contains in interface Collection<ELEMENTTYPE>public boolean containsAll(Collection<?> aElements)
containsAll in interface Collection<ELEMENTTYPE>public boolean isEmpty()
isEmpty in interface Collection<ELEMENTTYPE>public Iterator<ELEMENTTYPE> iterator()
iterator in interface Iterable<ELEMENTTYPE>iterator in interface Collection<ELEMENTTYPE>public boolean remove(Object aElement)
remove in interface Collection<ELEMENTTYPE>public boolean removeAll(Collection<?> aElements)
removeAll in interface Collection<ELEMENTTYPE>public boolean retainAll(Collection<?> aElements)
retainAll in interface Collection<ELEMENTTYPE>@Nonnegative public int size()
size in interface Collection<ELEMENTTYPE>public Object[] toArray()
toArray in interface Collection<ELEMENTTYPE>public <ARRAYELEMENTTYPE> ARRAYELEMENTTYPE[] toArray(ARRAYELEMENTTYPE[] a)
toArray in interface Collection<ELEMENTTYPE>public boolean equals(Object o)
equals in interface Collection<ELEMENTTYPE>equals in class Objectpublic int hashCode()
hashCode in interface Collection<ELEMENTTYPE>hashCode in class ObjectCopyright © 2014–2017 Philip Helger. All rights reserved.