public class ArraySortedSet<T>
extends java.lang.Object
implements java.util.SortedSet<T>
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T t) |
boolean |
addAll(java.util.Collection<? extends T> c) |
void |
clear() |
java.util.Comparator<? super T> |
comparator() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
boolean |
equals(java.lang.Object o) |
T |
first() |
int |
hashCode() |
java.util.SortedSet<T> |
headSet(T toElement) |
boolean |
isEmpty() |
java.util.Iterator<T> |
iterator() |
T |
last() |
static <T> ArraySortedSet<T> |
of(java.util.Comparator<? super T> comparator,
T[] arr) |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
int |
size() |
java.util.SortedSet<T> |
subSet(T fromElement,
T toElement) |
java.util.SortedSet<T> |
tailSet(T fromElement) |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
public static <T> ArraySortedSet<T> of(@Nonnull java.util.Comparator<? super T> comparator, @Nonnull T[] arr)
public int size()
public boolean isEmpty()
public boolean contains(java.lang.Object o)
public java.util.Iterator<T> iterator()
public java.lang.Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean add(T t)
public boolean remove(java.lang.Object o)
public boolean containsAll(java.util.Collection<?> c)
public boolean addAll(java.util.Collection<? extends T> c)
public boolean retainAll(java.util.Collection<?> c)
public boolean removeAll(java.util.Collection<?> c)
public void clear()
public java.util.Comparator<? super T> comparator()
comparator in interface java.util.SortedSet<T>public java.util.SortedSet<T> subSet(T fromElement, T toElement)
subSet in interface java.util.SortedSet<T>public java.util.SortedSet<T> headSet(T toElement)
headSet in interface java.util.SortedSet<T>public java.util.SortedSet<T> tailSet(T fromElement)
tailSet in interface java.util.SortedSet<T>public int hashCode()