Class ArraySortedSet<T>
java.lang.Object
org.jf.util.ArraySortedSet<T>
- All Implemented Interfaces:
Iterable<T>, Collection<T>, SequencedCollection<T>, SequencedSet<T>, Set<T>, SortedSet<T>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends T> c) voidclear()Comparator<? super T> booleanbooleancontainsAll(Collection<?> c) booleanfirst()inthashCode()booleanisEmpty()iterator()last()static <T> ArraySortedSet<T> of(Comparator<? super T> comparator, T[] arr) booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()Object[]toArray()<T> T[]toArray(T[] a) Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface SortedSet
addFirst, addLast, getFirst, getLast, removeFirst, removeLast, reversed, spliterator
-
Field Details
-
comparator
-
arr
-
-
Constructor Details
-
ArraySortedSet
-
-
Method Details
-
of
-
size
-
isEmpty
-
contains
-
iterator
-
toArray
-
toArray
-
add
-
remove
-
containsAll
- Specified by:
containsAllin interfaceCollection<T>- Specified by:
containsAllin interfaceSet<T>
-
addAll
-
retainAll
-
removeAll
-
clear
-
comparator
- Specified by:
comparatorin interfaceSortedSet<T>
-
subSet
-
headSet
-
tailSet
-
first
-
last
-
hashCode
-
equals
-