public final class TailBiasedSortedSet<E>
extends java.util.AbstractSet<E>
implements java.util.SortedSet<E>
Constructor and Description |
---|
TailBiasedSortedSet() |
TailBiasedSortedSet(java.util.Collection<? extends E> collection) |
TailBiasedSortedSet(java.util.Comparator<? super E> comparator) |
TailBiasedSortedSet(java.util.SortedSet<E> set) |
Modifier and Type | Method and 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 TailBiasedSortedSet(java.util.Comparator<? super E> comparator)
comparator
- public TailBiasedSortedSet()
public TailBiasedSortedSet(java.util.SortedSet<E> set)
public TailBiasedSortedSet(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)