|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet
org.compass.core.util.backport.java.util.AbstractSet
org.compass.core.util.backport.java.util.concurrent.ConcurrentSkipListMap.KeySet
static final class ConcurrentSkipListMap.KeySet
| Constructor Summary | |
|---|---|
ConcurrentSkipListMap.KeySet(ConcurrentNavigableMap map)
|
|
| Method Summary | |
|---|---|
Object |
ceiling(Object e)
Returns the least element in this set greater than or equal to the given element, or null if there is no such element. |
void |
clear()
|
Comparator |
comparator()
|
boolean |
contains(Object o)
|
Iterator |
descendingIterator()
Returns an iterator over the elements in this set, in descending order. |
NavigableSet |
descendingSet()
Returns a reverse order view of the elements contained in this set. |
boolean |
equals(Object o)
|
Object |
first()
|
Object |
floor(Object e)
Returns the greatest element in this set less than or equal to the given element, or null if there is no such element. |
SortedSet |
headSet(Object toElement)
Equivalent to headSet(toElement, false). |
NavigableSet |
headSet(Object toElement,
boolean inclusive)
Returns a view of the portion of this set whose elements are less than (or equal to, if inclusive is true) toElement. |
Object |
higher(Object e)
Returns the least element in this set strictly greater than the given element, or null if there is no such element. |
boolean |
isEmpty()
|
Iterator |
iterator()
Returns an iterator over the elements in this set, in ascending order. |
Object |
last()
|
Object |
lower(Object e)
Returns the greatest element in this set strictly less than the given element, or null if there is no such element. |
Object |
pollFirst()
Retrieves and removes the first (lowest) element, or returns null if this set is empty. |
Object |
pollLast()
Retrieves and removes the last (highest) element, or returns null if this set is empty. |
boolean |
remove(Object o)
|
int |
size()
|
NavigableSet |
subSet(Object fromElement,
boolean fromInclusive,
Object toElement,
boolean toInclusive)
Returns a view of the portion of this set whose elements range from fromElement to toElement. |
SortedSet |
subSet(Object fromElement,
Object toElement)
Equivalent to subSet(fromElement, true, toElement, false). |
SortedSet |
tailSet(Object fromElement)
Equivalent to tailSet(fromElement, true). |
NavigableSet |
tailSet(Object fromElement,
boolean inclusive)
Returns a view of the portion of this set whose elements are greater than (or equal to, if inclusive is true) fromElement. |
| Methods inherited from class org.compass.core.util.backport.java.util.AbstractSet |
|---|
toArray, toArray |
| Methods inherited from class java.util.AbstractSet |
|---|
hashCode, removeAll |
| Methods inherited from class java.util.AbstractCollection |
|---|
add, addAll, containsAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Set |
|---|
add, addAll, containsAll, hashCode, removeAll, retainAll, toArray, toArray |
| Constructor Detail |
|---|
ConcurrentSkipListMap.KeySet(ConcurrentNavigableMap map)
| Method Detail |
|---|
public int size()
size in interface Collectionsize in interface Setsize in class AbstractCollectionpublic boolean isEmpty()
isEmpty in interface CollectionisEmpty in interface SetisEmpty in class AbstractCollectionpublic boolean contains(Object o)
contains in interface Collectioncontains in interface Setcontains in class AbstractCollectionpublic boolean remove(Object o)
remove in interface Collectionremove in interface Setremove in class AbstractCollectionpublic void clear()
clear in interface Collectionclear in interface Setclear in class AbstractCollectionpublic Object lower(Object e)
NavigableSetnull if there is no such element.
lower in interface NavigableSete - the value to match
e,
or null if there is no such elementpublic Object floor(Object e)
NavigableSetnull if there is no such element.
floor in interface NavigableSete - the value to match
e,
or null if there is no such elementpublic Object ceiling(Object e)
NavigableSetnull if there is no such element.
ceiling in interface NavigableSete - the value to match
e,
or null if there is no such elementpublic Object higher(Object e)
NavigableSetnull if there is no such element.
higher in interface NavigableSete - the value to match
e,
or null if there is no such elementpublic Comparator comparator()
comparator in interface SortedSetpublic Object first()
first in interface SortedSetpublic Object last()
last in interface SortedSetpublic Object pollFirst()
NavigableSetnull if this set is empty.
pollFirst in interface NavigableSetnull if this set is emptypublic Object pollLast()
NavigableSetnull if this set is empty.
pollLast in interface NavigableSetnull if this set is emptypublic Iterator iterator()
NavigableSet
iterator in interface Iterableiterator in interface Collectioniterator in interface Setiterator in interface NavigableSetiterator in class AbstractCollectionpublic boolean equals(Object o)
equals in interface Collectionequals in interface Setequals in class AbstractSetpublic Iterator descendingIterator()
NavigableSetdescendingSet().iterator().
descendingIterator in interface NavigableSet
public NavigableSet subSet(Object fromElement,
boolean fromInclusive,
Object toElement,
boolean toInclusive)
NavigableSetfromElement to toElement. If fromElement and
toElement are equal, the returned set is empty unless fromExclusive and toExclusive are both true. The returned set
is backed by this set, so changes in the returned set are reflected in
this set, and vice-versa. The returned set supports all optional set
operations that this set supports.
The returned set will throw an IllegalArgumentException
on an attempt to insert an element outside its range.
subSet in interface NavigableSetfromElement - low endpoint of the returned setfromInclusive - true if the low endpoint
is to be included in the returned viewtoElement - high endpoint of the returned settoInclusive - true if the high endpoint
is to be included in the returned view
fromElement, inclusive, to toElement, exclusive
public NavigableSet headSet(Object toElement,
boolean inclusive)
NavigableSetinclusive is true) toElement. The
returned set is backed by this set, so changes in the returned set are
reflected in this set, and vice-versa. The returned set supports all
optional set operations that this set supports.
The returned set will throw an IllegalArgumentException
on an attempt to insert an element outside its range.
headSet in interface NavigableSettoElement - high endpoint of the returned setinclusive - true if the high endpoint
is to be included in the returned view
inclusive is true) toElement
public NavigableSet tailSet(Object fromElement,
boolean inclusive)
NavigableSetinclusive is true) fromElement.
The returned set is backed by this set, so changes in the returned set
are reflected in this set, and vice-versa. The returned set supports
all optional set operations that this set supports.
The returned set will throw an IllegalArgumentException
on an attempt to insert an element outside its range.
tailSet in interface NavigableSetfromElement - low endpoint of the returned setinclusive - true if the low endpoint
is to be included in the returned view
fromElement
public SortedSet subSet(Object fromElement,
Object toElement)
NavigableSetEquivalent to subSet(fromElement, true, toElement, false).
subSet in interface SortedSetsubSet in interface NavigableSetpublic SortedSet headSet(Object toElement)
NavigableSetEquivalent to headSet(toElement, false).
headSet in interface SortedSetheadSet in interface NavigableSetpublic SortedSet tailSet(Object fromElement)
NavigableSetEquivalent to tailSet(fromElement, true).
tailSet in interface SortedSettailSet in interface NavigableSetpublic NavigableSet descendingSet()
NavigableSetremove operation), the results of
the iteration are undefined.
The returned set has an ordering equivalent to
Collections.reverseOrder(comparator()).
The expression s.descendingSet().descendingSet() returns a
view of s essentially equivalent to s.
descendingSet in interface NavigableSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||