E
- Class of the elements of the Set.public abstract class ListSortedSet<E>
extends java.lang.Object
implements java.util.SortedSet<E>
Constructor and Description |
---|
ListSortedSet() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E el) |
boolean |
addAll(java.util.Collection<? extends E> collection) |
void |
clear() |
abstract java.util.Comparator<E> |
comparator() |
boolean |
contains(java.lang.Object obj) |
boolean |
containsAll(java.util.Collection<?> collection) |
E |
first() |
abstract java.util.SortedSet<E> |
getEmptySet()
Public method to instantiate a new empty set of the same class of the current Set.
|
java.util.SortedSet<E> |
headSet(E toElement) |
boolean |
isEmpty() |
java.util.Iterator<E> |
iterator() |
E |
last() |
boolean |
remove(java.lang.Object obj) |
boolean |
removeAll(java.util.Collection<?> collection) |
protected void |
reorder() |
boolean |
retainAll(java.util.Collection<?> collection) |
int |
size() |
java.util.SortedSet<E> |
subSet(E fromElement,
E toElement) |
java.util.SortedSet<E> |
tailSet(E fromElement) |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] array) |
public boolean add(E el)
public boolean addAll(java.util.Collection<? extends E> collection)
public void clear()
public boolean contains(java.lang.Object obj)
public boolean containsAll(java.util.Collection<?> collection)
public boolean isEmpty()
public java.util.Iterator<E> iterator()
public boolean remove(java.lang.Object obj)
public boolean removeAll(java.util.Collection<?> collection)
public boolean retainAll(java.util.Collection<?> collection)
public int size()
public java.lang.Object[] toArray()
public <T> T[] toArray(T[] array)
public abstract java.util.Comparator<E> comparator()
comparator
in interface java.util.SortedSet<E>
public java.util.SortedSet<E> headSet(E toElement)
headSet
in interface java.util.SortedSet<E>
public java.util.SortedSet<E> subSet(E fromElement, E toElement)
subSet
in interface java.util.SortedSet<E>
public java.util.SortedSet<E> tailSet(E fromElement)
tailSet
in interface java.util.SortedSet<E>
protected void reorder()
public abstract java.util.SortedSet<E> getEmptySet()