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 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 java.util.NavigableSet
removeFirst, removeLast, reversed
-
Constructor Details
-
KamiTreeSet
-
KamiTreeSet
-
KamiTreeSet
-