ELEMENTTYPE - Set element typepublic class CommonsHashSet<ELEMENTTYPE> extends HashSet<ELEMENTTYPE> implements ICommonsSet<ELEMENTTYPE>
HashSet implementation based on ICommonsSet.| Constructor and Description |
|---|
CommonsHashSet() |
CommonsHashSet(Collection<? extends ELEMENTTYPE> aCont) |
CommonsHashSet(Collection<? extends SRCTYPE> aValues,
Function<? super SRCTYPE,? extends ELEMENTTYPE> aMapper) |
CommonsHashSet(ELEMENTTYPE... aValues) |
CommonsHashSet(ELEMENTTYPE aValue) |
CommonsHashSet(int nInitialCapacity) |
CommonsHashSet(int nInitialCapacity,
float fLoadFactor) |
CommonsHashSet(Iterable<? extends ELEMENTTYPE> aIterable) |
CommonsHashSet(Iterable<? extends SRCTYPE> aValues,
Function<? super SRCTYPE,? extends ELEMENTTYPE> aMapper) |
CommonsHashSet(SRCTYPE[] aValues,
Function<? super SRCTYPE,? extends ELEMENTTYPE> aMapper) |
| Modifier and Type | Method and Description |
|---|---|
<T> CommonsHashSet<T> |
createInstance()
Create a new empty set.
|
CommonsHashSet<ELEMENTTYPE> |
getClone() |
add, clear, clone, contains, isEmpty, iterator, remove, size, spliteratorequals, hashCode, removeAlladdAll, containsAll, retainAll, toArray, toArray, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitgetAll, getAllInstanceOf, getAllMapped, getAllMapped, getAsUnmodifiable, replaceadd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArrayaddAll, 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, getCountisEmpty, isNotEmpty, sizepublic CommonsHashSet()
public CommonsHashSet(int nInitialCapacity)
public CommonsHashSet(int nInitialCapacity,
@Nonnegative
float fLoadFactor)
public CommonsHashSet(@Nullable Collection<? extends ELEMENTTYPE> aCont)
public CommonsHashSet(@Nullable Iterable<? extends ELEMENTTYPE> aIterable)
public CommonsHashSet(@Nullable Collection<? extends SRCTYPE> aValues, @Nonnull Function<? super SRCTYPE,? extends ELEMENTTYPE> aMapper)
public CommonsHashSet(@Nullable Iterable<? extends SRCTYPE> aValues, @Nonnull Function<? super SRCTYPE,? extends ELEMENTTYPE> aMapper)
public CommonsHashSet(@Nullable ELEMENTTYPE aValue)
@SafeVarargs public CommonsHashSet(@Nullable ELEMENTTYPE... aValues)
public CommonsHashSet(@Nullable SRCTYPE[] aValues, @Nonnull Function<? super SRCTYPE,? extends ELEMENTTYPE> aMapper)
@Nonnull @ReturnsMutableCopy public <T> CommonsHashSet<T> createInstance()
ICommonsSetCommonsHashSet.createInstance in interface ICommonsSet<ELEMENTTYPE>T - Set element typenull.@Nonnull @ReturnsMutableCopy public CommonsHashSet<ELEMENTTYPE> getClone()
getClone in interface ICloneable<ICommonsSet<ELEMENTTYPE>>Copyright © 2014–2019 Philip Helger. All rights reserved.