java.lang.Iterable<E>
, java.util.Collection<E>
, java.util.Set<E>
, java.util.SortedSet<E>
public final class HeadBiasedSortedSet<E>
extends java.util.AbstractSet<E>
implements java.util.SortedSet<E>
Constructor | Description |
---|---|
HeadBiasedSortedSet() |
|
HeadBiasedSortedSet(java.util.Collection<? extends E> collection) |
|
HeadBiasedSortedSet(java.util.Comparator<? super E> comparator) |
|
HeadBiasedSortedSet(java.util.SortedSet<E> set) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
add(E o) |
|
void |
clear() |
|
java.util.Comparator<? super E> |
comparator() |
|
E |
first() |
|
java.util.SortedSet<E> |
headSet(E toElement) |
|
java.util.Iterator<E> |
iterator() |
|
E |
last() |
|
int |
size() |
|
java.util.SortedSet<E> |
subSet(E fromElement,
E toElement) |
|
java.util.SortedSet<E> |
tailSet(E fromElement) |
addAll, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public HeadBiasedSortedSet(java.util.Comparator<? super E> comparator)
comparator
- public HeadBiasedSortedSet()
public HeadBiasedSortedSet(java.util.SortedSet<E> set)
public HeadBiasedSortedSet(java.util.Collection<? extends E> collection)
public java.util.Comparator<? super E> comparator()
comparator
in interface java.util.SortedSet<E>
public java.util.Iterator<E> iterator()
public int size()
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>
public boolean add(E o)