Package org.jf.util
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 java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.SortedSet
addFirst, addLast, getFirst, getLast, removeFirst, removeLast, reversed, spliterator
-
Field Details
-
comparator
-
arr
-
-
Constructor Details
-
ArraySortedSet
-
-
Method Details
-
of
-
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
iterator
-
toArray
-
toArray
public <T> T[] toArray(T[] a) -
add
-
remove
-
containsAll
- Specified by:
containsAllin interfaceCollection<T>- Specified by:
containsAllin interfaceSet<T>
-
addAll
-
retainAll
-
removeAll
-
clear
public void clear() -
comparator
- Specified by:
comparatorin interfaceSortedSet<T>
-
subSet
-
headSet
-
tailSet
-
first
-
last
-
hashCode
public int hashCode() -
equals
-