public class ContiguousSet<T>
extends java.lang.Object
implements java.lang.Iterable<T>, java.util.Collection<T>, java.util.NavigableSet<T>, java.util.SortedSet<T>
Constructor and Description |
---|
ContiguousSet(Interval<T> range,
Incrementor<T> incrementor) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(T e) |
boolean |
addAll(java.util.Collection<? extends T> c) |
T |
ceiling(T e) |
void |
clear() |
java.util.Comparator<? super T> |
comparator() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
static <T extends Incrementable<? extends T>> |
create(Interval<T> range) |
java.util.Iterator<T> |
descendingIterator() |
java.util.NavigableSet<T> |
descendingSet() |
T |
first() |
T |
floor(T e) |
java.util.Comparator<? super T> |
getComparator() |
Incrementor<T> |
getIncrementor() |
Interval<T> |
getRange() |
java.util.SortedSet<T> |
headSet(T toElement) |
java.util.NavigableSet<T> |
headSet(T toElement,
boolean inclusive) |
T |
higher(T e) |
boolean |
isEmpty() |
java.util.Iterator<T> |
iterator() |
T |
last() |
T |
lower(T e) |
T |
pollFirst() |
T |
pollLast() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
int |
size() |
ContiguousSet<T> |
subSet(T from,
boolean fromInclusive,
T to,
boolean toInclusive) |
java.util.SortedSet<T> |
subSet(T fromElement,
T toElement) |
java.util.SortedSet<T> |
tailSet(T fromElement) |
java.util.NavigableSet<T> |
tailSet(T fromElement,
boolean inclusive) |
java.lang.Object[] |
toArray() |
<A> A[] |
toArray(A[] a) |
public ContiguousSet(Interval<T> range, Incrementor<T> incrementor)
public static <T extends Incrementable<? extends T>> ContiguousSet<T> create(Interval<T> range)
public final Incrementor<T> getIncrementor()
public final java.util.Comparator<? super T> getComparator()
public final java.util.Comparator<? super T> comparator()
comparator
in interface java.util.SortedSet<T>
public java.util.Iterator<T> iterator()
public java.util.NavigableSet<T> descendingSet()
descendingSet
in interface java.util.NavigableSet<T>
public java.util.Iterator<T> descendingIterator()
descendingIterator
in interface java.util.NavigableSet<T>
public ContiguousSet<T> subSet(T from, boolean fromInclusive, T to, boolean toInclusive)
subSet
in interface java.util.NavigableSet<T>
public java.util.NavigableSet<T> headSet(T toElement, boolean inclusive)
headSet
in interface java.util.NavigableSet<T>
public java.util.NavigableSet<T> tailSet(T fromElement, boolean inclusive)
tailSet
in interface java.util.NavigableSet<T>
public int size()
public boolean isEmpty()
public boolean contains(java.lang.Object o)
public java.lang.Object[] toArray()
public <A> A[] toArray(A[] a)
public boolean add(T e)
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 removeAll(java.util.Collection<?> c)
public boolean retainAll(java.util.Collection<?> c)