@Beta protected class ForwardingNavigableSet.StandardDescendingSet extends ForwardingNavigableSet<E>
NavigableSet.descendingSet()
in terms of the other methods
of NavigableSet
, notably including NavigableSet.descendingIterator()
.
In many cases, you may wish to override ForwardingNavigableSet.descendingSet()
to
forward to this implementation or a subclass thereof.
ForwardingNavigableSet.StandardDescendingSet
Constructor and Description |
---|
ForwardingNavigableSet.StandardDescendingSet()
Constructor for use by subclasses.
|
Modifier and Type | Method and Description |
---|---|
E |
ceiling(E e) |
Comparator<? super E> |
comparator() |
protected NavigableSet<E> |
delegate()
Returns the backing delegate instance that methods are forwarded to.
|
Iterator<E> |
descendingIterator() |
NavigableSet<E> |
descendingSet() |
E |
first() |
E |
floor(E e) |
SortedSet<E> |
headSet(E toElement) |
NavigableSet<E> |
headSet(E toElement,
boolean inclusive) |
E |
higher(E e) |
Iterator<E> |
iterator() |
E |
last() |
E |
lower(E e) |
E |
pollFirst() |
E |
pollLast() |
NavigableSet<E> |
subSet(E fromElement,
boolean fromInclusive,
E toElement,
boolean toInclusive) |
SortedSet<E> |
subSet(E fromElement,
E toElement) |
SortedSet<E> |
tailSet(E fromElement) |
NavigableSet<E> |
tailSet(E fromElement,
boolean inclusive) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] array) |
String |
toString()
Returns the string representation generated by the delegate's
toString method. |
standardCeiling, standardFirst, standardFloor, standardHeadSet, standardHigher, standardLast, standardLower, standardPollFirst, standardPollLast, standardSubSet, standardSubSet, standardTailSet
standardContains, standardRemove
equals, hashCode, standardEquals, standardHashCode, standardRemoveAll
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, standardAddAll, standardClear, standardContainsAll, standardIsEmpty, standardRetainAll, standardToArray, standardToArray, standardToString
public ForwardingNavigableSet.StandardDescendingSet()
protected NavigableSet<E> delegate()
ForwardingObject
ForwardingSet.delegate()
. Concrete subclasses override this method to supply
the instance being decorated.delegate
in class ForwardingNavigableSet<E>
public E lower(E e)
lower
in interface NavigableSet<E>
lower
in class ForwardingNavigableSet<E>
public E floor(E e)
floor
in interface NavigableSet<E>
floor
in class ForwardingNavigableSet<E>
public E ceiling(E e)
ceiling
in interface NavigableSet<E>
ceiling
in class ForwardingNavigableSet<E>
public E higher(E e)
higher
in interface NavigableSet<E>
higher
in class ForwardingNavigableSet<E>
public E pollFirst()
pollFirst
in interface NavigableSet<E>
pollFirst
in class ForwardingNavigableSet<E>
public E pollLast()
pollLast
in interface NavigableSet<E>
pollLast
in class ForwardingNavigableSet<E>
public NavigableSet<E> descendingSet()
descendingSet
in interface NavigableSet<E>
descendingSet
in class ForwardingNavigableSet<E>
public Iterator<E> descendingIterator()
descendingIterator
in interface NavigableSet<E>
descendingIterator
in class ForwardingNavigableSet<E>
public NavigableSet<E> subSet(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive)
subSet
in interface NavigableSet<E>
subSet
in class ForwardingNavigableSet<E>
public NavigableSet<E> headSet(E toElement, boolean inclusive)
headSet
in interface NavigableSet<E>
headSet
in class ForwardingNavigableSet<E>
public NavigableSet<E> tailSet(E fromElement, boolean inclusive)
tailSet
in interface NavigableSet<E>
tailSet
in class ForwardingNavigableSet<E>
public Comparator<? super E> comparator()
comparator
in interface SortedSet<E>
comparator
in class ForwardingSortedSet<E>
public E first()
first
in interface SortedSet<E>
first
in class ForwardingSortedSet<E>
public SortedSet<E> headSet(E toElement)
headSet
in interface NavigableSet<E>
headSet
in interface SortedSet<E>
headSet
in class ForwardingSortedSet<E>
public E last()
last
in interface SortedSet<E>
last
in class ForwardingSortedSet<E>
public SortedSet<E> subSet(E fromElement, E toElement)
subSet
in interface NavigableSet<E>
subSet
in interface SortedSet<E>
subSet
in class ForwardingSortedSet<E>
public SortedSet<E> tailSet(E fromElement)
tailSet
in interface NavigableSet<E>
tailSet
in interface SortedSet<E>
tailSet
in class ForwardingSortedSet<E>
public Iterator<E> iterator()
iterator
in interface Iterable<E>
iterator
in interface Collection<E>
iterator
in interface NavigableSet<E>
iterator
in interface Set<E>
iterator
in class ForwardingCollection<E>
public Object[] toArray()
toArray
in interface Collection<E>
toArray
in interface Set<E>
toArray
in class ForwardingCollection<E>
public <T> T[] toArray(T[] array)
toArray
in interface Collection<E>
toArray
in interface Set<E>
toArray
in class ForwardingCollection<E>
public String toString()
ForwardingObject
toString
method.toString
in class ForwardingObject
Copyright © 2010-2013. All Rights Reserved.