Class CommonsTreeSet<ELEMENTTYPE>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- 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>,Set<ELEMENTTYPE>,SortedSet<ELEMENTTYPE>
public class CommonsTreeSet<ELEMENTTYPE> extends TreeSet<ELEMENTTYPE> implements ICommonsNavigableSet<ELEMENTTYPE>
A specialTreeSetimplementation based onICommonsNavigableSet.- Author:
- Philip Helger
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CommonsTreeSet()CommonsTreeSet(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> CommonsTreeSet<T>createInstance()Create a new empty set.CommonsTreeSet<ELEMENTTYPE>getClone()-
Methods inherited from class java.util.TreeSet
add, addAll, ceiling, clear, clone, comparator, contains, descendingIterator, descendingSet, first, floor, headSet, headSet, higher, isEmpty, iterator, last, lower, pollFirst, pollLast, remove, size, spliterator, subSet, subSet, tailSet, tailSet
-
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
-
Methods inherited from class java.util.AbstractCollection
containsAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods 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, setAllMapped
-
Methods 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, getCount
-
Methods inherited from interface com.helger.commons.collection.impl.ICommonsNavigableSet
getAsUnmodifiable
-
Methods inherited from interface com.helger.commons.collection.impl.ICommonsSet
getAll, getAllInstanceOf, getAllMapped, getAllMapped, replace
-
Methods inherited from interface com.helger.commons.collection.impl.ICommonsSortedSet
getFirst, getFirst, getLast, getLast
-
Methods inherited from interface com.helger.commons.lang.IHasSize
isEmpty, isNotEmpty, size
-
Methods inherited from interface java.util.NavigableSet
ceiling, descendingIterator, descendingSet, floor, headSet, headSet, higher, iterator, lower, pollFirst, pollLast, subSet, subSet, tailSet, tailSet
-
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, size, toArray, toArray
-
Methods inherited from interface java.util.SortedSet
comparator, first, last, spliterator
-
-
-
-
Constructor Detail
-
CommonsTreeSet
public CommonsTreeSet()
-
CommonsTreeSet
public CommonsTreeSet(@Nullable Comparator<? super ELEMENTTYPE> aComparator)
-
CommonsTreeSet
public CommonsTreeSet(@Nullable Collection<? extends ELEMENTTYPE> aCont)
-
CommonsTreeSet
public CommonsTreeSet(@Nullable Iterable<? extends ELEMENTTYPE> aIterable)
-
CommonsTreeSet
public CommonsTreeSet(@Nullable Iterable<? extends SRCTYPE> aValues, @Nonnull Function<? super SRCTYPE,? extends ELEMENTTYPE> aMapper)
-
CommonsTreeSet
public CommonsTreeSet(@Nullable ELEMENTTYPE aValue)
-
CommonsTreeSet
@SafeVarargs public CommonsTreeSet(@Nullable ELEMENTTYPE... aValues)
-
CommonsTreeSet
public CommonsTreeSet(@Nullable SRCTYPE[] aValues, @Nonnull Function<? super SRCTYPE,? extends ELEMENTTYPE> aMapper)
-
-
Method Detail
-
createInstance
@Nonnull @ReturnsMutableCopy public <T> CommonsTreeSet<T> 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
@Nonnull @ReturnsMutableCopy public CommonsTreeSet<ELEMENTTYPE> 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.
-
-