Class KamiTreeSet<E, C extends Comparator<? super E>>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.TreeSet<E>
com.kamikazejam.kamicommon.util.collections.KamiTreeSet<E,C>
- All Implemented Interfaces:
Serializable, Cloneable, Iterable<E>, Collection<E>, NavigableSet<E>, SequencedCollection<E>, SequencedSet<E>, Set<E>, SortedSet<E>
This subclass adds better constructors.
It also includes the comparator as a Generic for automatic use with GSON.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionKamiTreeSet(Object comparator) KamiTreeSet(Object comparator, E @NotNull ... elements) KamiTreeSet(Object comparator, Collection<? extends E> c) -
Method Summary
Methods inherited from class 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 AbstractSet
equals, hashCode, removeAllMethods inherited from class AbstractCollection
containsAll, retainAll, toArray, toArray, toStringMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface NavigableSet
removeFirst, removeLast, reversed
-
Constructor Details
-
KamiTreeSet
-
KamiTreeSet
-
KamiTreeSet
-