ELEMENTTYPE - Element type@NotThreadSafe public class WrappedSet<ELEMENTTYPE> extends Object implements com.helger.commons.collection.impl.ICommonsSet<ELEMENTTYPE>
Set. It may be used to wrap any kind of
Set and overwrite single methods, e.g. for logging.| Constructor and Description |
|---|
WrappedSet(Set<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) |
protected Set<ELEMENTTYPE> |
directGetSource() |
boolean |
equals(Object o) |
WrappedSet<ELEMENTTYPE> |
getClone() |
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, waitcreateInstance, getAll, getAllInstanceOf, getAllMapped, getAllMapped, getAsUnmodifiable, replacespliteratoraddAll, addAll, addAll, addAll, addAll, addAll, addAll, addAll, addAllMapped, addAllMapped, addAllMapped, addAllMapped, addAllMapped, addAllMapped, addIf, addIfNotNull, addObject, getAtIndex, getAtIndex, getAtIndex, getAtIndex, getAtIndexMapped, getAtIndexMapped, getAtIndexMapped, getAtIndexMapped, getCopyAsList, getCount, getSorted, iterator2, removeAll, removeObject, set, setAll, setAll, setAllMapped, setAllMappedparallelStream, removeIf, streamcontainsAny, containsNone, containsOnly, findAll, findAllInstanceOf, findAllMapped, findAllMapped, findAllMapped, findFirst, findFirst, findFirstIndex, findFirstMapped, findFirstMapped, findLastIndex, forEach, forEachBreakable, forEachByIndex, getCountpublic WrappedSet(@Nonnull Set<ELEMENTTYPE> aSet)
@Nonnull @ReturnsMutableObject(value="design") @CodingStyleguideUnaware protected Set<ELEMENTTYPE> directGetSource()
@Nonnull @ReturnsMutableCopy public WrappedSet<ELEMENTTYPE> getClone()
getClone in interface com.helger.commons.lang.ICloneable<com.helger.commons.collection.impl.ICommonsSet<ELEMENTTYPE>>public boolean add(@Nullable ELEMENTTYPE aElement)
add in interface Collection<ELEMENTTYPE>add in interface Set<ELEMENTTYPE>public boolean addAll(@Nonnull Collection<? extends ELEMENTTYPE> aElements)
addAll in interface Collection<ELEMENTTYPE>addAll in interface Set<ELEMENTTYPE>public void clear()
clear in interface Collection<ELEMENTTYPE>clear in interface Set<ELEMENTTYPE>public boolean contains(Object aElement)
contains in interface Collection<ELEMENTTYPE>contains in interface Set<ELEMENTTYPE>public boolean containsAll(Collection<?> aElements)
containsAll in interface Collection<ELEMENTTYPE>containsAll in interface Set<ELEMENTTYPE>public boolean isEmpty()
isEmpty in interface com.helger.commons.lang.IHasSizeisEmpty in interface Collection<ELEMENTTYPE>isEmpty in interface Set<ELEMENTTYPE>public Iterator<ELEMENTTYPE> iterator()
iterator in interface Iterable<ELEMENTTYPE>iterator in interface Collection<ELEMENTTYPE>iterator in interface Set<ELEMENTTYPE>public boolean remove(Object aElement)
remove in interface Collection<ELEMENTTYPE>remove in interface Set<ELEMENTTYPE>public boolean removeAll(Collection<?> aElements)
removeAll in interface Collection<ELEMENTTYPE>removeAll in interface Set<ELEMENTTYPE>public boolean retainAll(Collection<?> aElements)
retainAll in interface Collection<ELEMENTTYPE>retainAll in interface Set<ELEMENTTYPE>@Nonnegative public int size()
size in interface com.helger.commons.lang.IHasSizesize in interface Collection<ELEMENTTYPE>size in interface Set<ELEMENTTYPE>public Object[] toArray()
toArray in interface Collection<ELEMENTTYPE>toArray in interface Set<ELEMENTTYPE>public <ARRAYELEMENTTYPE> ARRAYELEMENTTYPE[] toArray(ARRAYELEMENTTYPE[] a)
toArray in interface Collection<ELEMENTTYPE>toArray in interface Set<ELEMENTTYPE>public boolean equals(Object o)
equals in interface Collection<ELEMENTTYPE>equals in interface Set<ELEMENTTYPE>equals in class Objectpublic int hashCode()
hashCode in interface Collection<ELEMENTTYPE>hashCode in interface Set<ELEMENTTYPE>hashCode in class ObjectCopyright © 2017–2020 Philip Helger. All rights reserved.