Class CommonsTreeSet<ELEMENTTYPE>
java.lang.Object
java.util.AbstractCollection<ELEMENTTYPE>
java.util.AbstractSet<ELEMENTTYPE>
java.util.TreeSet<ELEMENTTYPE>
com.helger.commons.collection.impl.CommonsTreeSet<ELEMENTTYPE>
- Type Parameters:
ELEMENTTYPE- Set element type
- All Implemented Interfaces:
ICommonsCollection<ELEMENTTYPE>,ICommonsIterable<ELEMENTTYPE>,ICommonsNavigableSet<ELEMENTTYPE>,ICommonsSet<ELEMENTTYPE>,ICommonsSortedSet<ELEMENTTYPE>,ICloneable<ICommonsSet<ELEMENTTYPE>>,IHasSize,Serializable,Cloneable,Iterable<ELEMENTTYPE>,Collection<ELEMENTTYPE>,NavigableSet<ELEMENTTYPE>,SequencedCollection<ELEMENTTYPE>,SequencedSet<ELEMENTTYPE>,Set<ELEMENTTYPE>,SortedSet<ELEMENTTYPE>
public class CommonsTreeSet<ELEMENTTYPE>
extends TreeSet<ELEMENTTYPE>
implements ICommonsNavigableSet<ELEMENTTYPE>
A special
TreeSet implementation based on
ICommonsNavigableSet.- Author:
- Philip Helger
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCommonsTreeSet(ELEMENTTYPE aValue) CommonsTreeSet(ELEMENTTYPE... aValues) CommonsTreeSet(Iterable<? extends ELEMENTTYPE> aIterable) CommonsTreeSet(Iterable<? extends SRCTYPE> aValues, Function<? super SRCTYPE, ? extends ELEMENTTYPE> aMapper) CommonsTreeSet(Collection<? extends ELEMENTTYPE> aCont) CommonsTreeSet(Comparator<? super ELEMENTTYPE> aComparator) CommonsTreeSet(SRCTYPE[] aValues, Function<? super SRCTYPE, ? extends ELEMENTTYPE> aMapper) -
Method Summary
Methods inherited from class java.util.TreeSet
add, addAll, addFirst, addLast, ceiling, clear, clone, comparator, contains, descendingIterator, descendingSet, first, floor, headSet, headSet, higher, isEmpty, iterator, last, lower, pollFirst, pollLast, remove, size, spliterator, subSet, subSet, tailSet, tailSetMethods inherited from class java.util.AbstractSet
equals, hashCode, removeAllMethods inherited from class java.util.AbstractCollection
containsAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface com.helger.commons.collection.impl.ICommonsCollection
addAll, 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, setAllMappedMethods inherited from interface com.helger.commons.collection.impl.ICommonsIterable
containsAny, containsNone, containsOnly, findAll, findAllInstanceOf, findAllMapped, findAllMapped, findAllMapped, findFirst, findFirst, findFirstIndex, findFirstMapped, findFirstMapped, findLastIndex, forEachBreakable, forEachByIndex, forEachThrowing, getCountMethods inherited from interface com.helger.commons.collection.impl.ICommonsNavigableSet
getAsUnmodifiableMethods inherited from interface com.helger.commons.collection.impl.ICommonsSet
getAll, getAllInstanceOf, getAllMapped, getAllMapped, replaceMethods inherited from interface com.helger.commons.collection.impl.ICommonsSortedSet
getFirst, getFirst, getLast, getLastMethods inherited from interface com.helger.commons.lang.IHasSize
isEmpty, isNotEmpty, sizeMethods inherited from interface java.util.NavigableSet
ceiling, descendingIterator, descendingSet, floor, headSet, headSet, higher, iterator, lower, pollFirst, pollLast, removeFirst, removeLast, reversed, subSet, subSet, tailSet, tailSetMethods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, size, toArray, toArrayMethods inherited from interface java.util.SortedSet
addFirst, addLast, comparator, first, last, spliterator
-
Constructor Details
-
CommonsTreeSet
public CommonsTreeSet() -
CommonsTreeSet
-
CommonsTreeSet
-
CommonsTreeSet
-
CommonsTreeSet
public CommonsTreeSet(@Nullable Iterable<? extends SRCTYPE> aValues, @Nonnull Function<? super SRCTYPE, ? extends ELEMENTTYPE> aMapper) -
CommonsTreeSet
-
CommonsTreeSet
-
CommonsTreeSet
public CommonsTreeSet(@Nullable SRCTYPE[] aValues, @Nonnull Function<? super SRCTYPE, ? extends ELEMENTTYPE> aMapper)
-
-
Method Details
-
createInstance
Description copied from interface:ICommonsSetCreate a new empty set. Overwrite this if you don't want to useCommonsHashSet.- Specified by:
createInstancein interfaceICommonsSet<ELEMENTTYPE>- Type Parameters:
T- Set element type- Returns:
- A new empty set. Never
null.
-
getClone
- Specified by:
getClonein interfaceICloneable<ELEMENTTYPE>- Specified by:
getClonein interfaceICommonsNavigableSet<ELEMENTTYPE>- Specified by:
getClonein interfaceICommonsSortedSet<ELEMENTTYPE>- Returns:
- A 100% deep-copy of the implementing class.
-