private static class Constraints.ConstrainedSortedSet<E> extends ForwardingSortedSet<E>
Modifier and Type | Field and Description |
---|---|
(package private) Constraint<? super E> |
constraint |
(package private) java.util.SortedSet<E> |
delegate |
Constructor and Description |
---|
ConstrainedSortedSet(java.util.SortedSet<E> delegate,
Constraint<? super E> constraint) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E element) |
boolean |
addAll(java.util.Collection<? extends E> elements) |
protected java.util.SortedSet<E> |
delegate()
Returns the backing delegate instance that methods are forwarded to.
|
java.util.SortedSet<E> |
headSet(E toElement) |
java.util.SortedSet<E> |
subSet(E fromElement,
E toElement) |
java.util.SortedSet<E> |
tailSet(E fromElement) |
comparator, first, last, standardContains, standardRemove, standardSubSet
equals, hashCode, standardEquals, standardHashCode, standardRemoveAll
clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, standardAddAll, standardClear, standardContainsAll, standardIsEmpty, standardRetainAll, standardToArray, standardToArray, standardToString, toArray, toArray
toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
final java.util.SortedSet<E> delegate
final Constraint<? super E> constraint
ConstrainedSortedSet(java.util.SortedSet<E> delegate, Constraint<? super E> constraint)
protected java.util.SortedSet<E> delegate()
ForwardingObject
ForwardingSet.delegate()
. Concrete subclasses override this method to supply
the instance being decorated.delegate
in class ForwardingSortedSet<E>
public java.util.SortedSet<E> headSet(E toElement)
headSet
in interface java.util.SortedSet<E>
headSet
in class ForwardingSortedSet<E>
public java.util.SortedSet<E> subSet(E fromElement, E toElement)
subSet
in interface java.util.SortedSet<E>
subSet
in class ForwardingSortedSet<E>
public java.util.SortedSet<E> tailSet(E fromElement)
tailSet
in interface java.util.SortedSet<E>
tailSet
in class ForwardingSortedSet<E>
public boolean add(E element)
add
in interface java.util.Collection<E>
add
in interface java.util.Set<E>
add
in class ForwardingCollection<E>