ConcurrentSkipListSet (Java Platform SE 7 ) (original) (raw)
Modifier and Type
Method and Description
boolean
**[add](../../../java/util/concurrent/ConcurrentSkipListSet.html#add%28E%29)**([E](../../../java/util/concurrent/ConcurrentSkipListSet.html "type parameter in ConcurrentSkipListSet") e)
Adds the specified element to this set if it is not already present.
[E](../../../java/util/concurrent/ConcurrentSkipListSet.html "type parameter in ConcurrentSkipListSet")
**[ceiling](../../../java/util/concurrent/ConcurrentSkipListSet.html#ceiling%28E%29)**([E](../../../java/util/concurrent/ConcurrentSkipListSet.html "type parameter in ConcurrentSkipListSet") 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](../../../java/util/concurrent/ConcurrentSkipListSet.html#clear%28%29)**()
Removes all of the elements from this set.
[ConcurrentSkipListSet](../../../java/util/concurrent/ConcurrentSkipListSet.html "class in java.util.concurrent")<[E](../../../java/util/concurrent/ConcurrentSkipListSet.html "type parameter in ConcurrentSkipListSet")>
**[clone](../../../java/util/concurrent/ConcurrentSkipListSet.html#clone%28%29)**()
Returns a shallow copy of this
ConcurrentSkipListSet
instance.
[Comparator](../../../java/util/Comparator.html "interface in java.util")<? super [E](../../../java/util/concurrent/ConcurrentSkipListSet.html "type parameter in ConcurrentSkipListSet")>
**[comparator](../../../java/util/concurrent/ConcurrentSkipListSet.html#comparator%28%29)**()
Returns the comparator used to order the elements in this set, or
null
if this set uses the natural ordering of its elements.
boolean
**[contains](../../../java/util/concurrent/ConcurrentSkipListSet.html#contains%28java.lang.Object%29)**([Object](../../../java/lang/Object.html "class in java.lang") o)
Returns
true
if this set contains the specified element.
[Iterator](../../../java/util/Iterator.html "interface in java.util")<[E](../../../java/util/concurrent/ConcurrentSkipListSet.html "type parameter in ConcurrentSkipListSet")>
**[descendingIterator](../../../java/util/concurrent/ConcurrentSkipListSet.html#descendingIterator%28%29)**()
Returns an iterator over the elements in this set in descending order.
[NavigableSet](../../../java/util/NavigableSet.html "interface in java.util")<[E](../../../java/util/concurrent/ConcurrentSkipListSet.html "type parameter in ConcurrentSkipListSet")>
**[descendingSet](../../../java/util/concurrent/ConcurrentSkipListSet.html#descendingSet%28%29)**()
Returns a reverse order view of the elements contained in this set.
boolean
**[equals](../../../java/util/concurrent/ConcurrentSkipListSet.html#equals%28java.lang.Object%29)**([Object](../../../java/lang/Object.html "class in java.lang") o)
Compares the specified object with this set for equality.
[E](../../../java/util/concurrent/ConcurrentSkipListSet.html "type parameter in ConcurrentSkipListSet")
**[first](../../../java/util/concurrent/ConcurrentSkipListSet.html#first%28%29)**()
Returns the first (lowest) element currently in this set.
[E](../../../java/util/concurrent/ConcurrentSkipListSet.html "type parameter in ConcurrentSkipListSet")
**[floor](../../../java/util/concurrent/ConcurrentSkipListSet.html#floor%28E%29)**([E](../../../java/util/concurrent/ConcurrentSkipListSet.html "type parameter in ConcurrentSkipListSet") e)
Returns the greatest element in this set less than or equal to the given element, or null
if there is no such element.
[NavigableSet](../../../java/util/NavigableSet.html "interface in java.util")<[E](../../../java/util/concurrent/ConcurrentSkipListSet.html "type parameter in ConcurrentSkipListSet")>
**[headSet](../../../java/util/concurrent/ConcurrentSkipListSet.html#headSet%28E%29)**([E](../../../java/util/concurrent/ConcurrentSkipListSet.html "type parameter in ConcurrentSkipListSet") toElement)
Returns a view of the portion of this set whose elements are strictly less than
toElement
.
[NavigableSet](../../../java/util/NavigableSet.html "interface in java.util")<[E](../../../java/util/concurrent/ConcurrentSkipListSet.html "type parameter in ConcurrentSkipListSet")>
**[headSet](../../../java/util/concurrent/ConcurrentSkipListSet.html#headSet%28E,%20boolean%29)**([E](../../../java/util/concurrent/ConcurrentSkipListSet.html "type parameter in ConcurrentSkipListSet") 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
.
[E](../../../java/util/concurrent/ConcurrentSkipListSet.html "type parameter in ConcurrentSkipListSet")
**[higher](../../../java/util/concurrent/ConcurrentSkipListSet.html#higher%28E%29)**([E](../../../java/util/concurrent/ConcurrentSkipListSet.html "type parameter in ConcurrentSkipListSet") e)
Returns the least element in this set strictly greater than the given element, or null
if there is no such element.
boolean
**[isEmpty](../../../java/util/concurrent/ConcurrentSkipListSet.html#isEmpty%28%29)**()
Returns
true
if this set contains no elements.
[Iterator](../../../java/util/Iterator.html "interface in java.util")<[E](../../../java/util/concurrent/ConcurrentSkipListSet.html "type parameter in ConcurrentSkipListSet")>
**[iterator](../../../java/util/concurrent/ConcurrentSkipListSet.html#iterator%28%29)**()
Returns an iterator over the elements in this set in ascending order.
[E](../../../java/util/concurrent/ConcurrentSkipListSet.html "type parameter in ConcurrentSkipListSet")
**[last](../../../java/util/concurrent/ConcurrentSkipListSet.html#last%28%29)**()
Returns the last (highest) element currently in this set.
[E](../../../java/util/concurrent/ConcurrentSkipListSet.html "type parameter in ConcurrentSkipListSet")
**[lower](../../../java/util/concurrent/ConcurrentSkipListSet.html#lower%28E%29)**([E](../../../java/util/concurrent/ConcurrentSkipListSet.html "type parameter in ConcurrentSkipListSet") e)
Returns the greatest element in this set strictly less than the given element, or null
if there is no such element.
[E](../../../java/util/concurrent/ConcurrentSkipListSet.html "type parameter in ConcurrentSkipListSet")
**[pollFirst](../../../java/util/concurrent/ConcurrentSkipListSet.html#pollFirst%28%29)**()
Retrieves and removes the first (lowest) element, or returns null
if this set is empty.
[E](../../../java/util/concurrent/ConcurrentSkipListSet.html "type parameter in ConcurrentSkipListSet")
**[pollLast](../../../java/util/concurrent/ConcurrentSkipListSet.html#pollLast%28%29)**()
Retrieves and removes the last (highest) element, or returns null
if this set is empty.
boolean
**[remove](../../../java/util/concurrent/ConcurrentSkipListSet.html#remove%28java.lang.Object%29)**([Object](../../../java/lang/Object.html "class in java.lang") o)
Removes the specified element from this set if it is present.
boolean
**[removeAll](../../../java/util/concurrent/ConcurrentSkipListSet.html#removeAll%28java.util.Collection%29)**([Collection](../../../java/util/Collection.html "interface in java.util")<?> c)
Removes from this set all of its elements that are contained in the specified collection.
int
**[size](../../../java/util/concurrent/ConcurrentSkipListSet.html#size%28%29)**()
Returns the number of elements in this set.
[NavigableSet](../../../java/util/NavigableSet.html "interface in java.util")<[E](../../../java/util/concurrent/ConcurrentSkipListSet.html "type parameter in ConcurrentSkipListSet")>
**[subSet](../../../java/util/concurrent/ConcurrentSkipListSet.html#subSet%28E,%20boolean,%20E,%20boolean%29)**([E](../../../java/util/concurrent/ConcurrentSkipListSet.html "type parameter in ConcurrentSkipListSet") fromElement, boolean fromInclusive,[E](../../../java/util/concurrent/ConcurrentSkipListSet.html "type parameter in ConcurrentSkipListSet") toElement, boolean toInclusive)
Returns a view of the portion of this set whose elements range fromfromElement
to toElement
.
[NavigableSet](../../../java/util/NavigableSet.html "interface in java.util")<[E](../../../java/util/concurrent/ConcurrentSkipListSet.html "type parameter in ConcurrentSkipListSet")>
**[subSet](../../../java/util/concurrent/ConcurrentSkipListSet.html#subSet%28E,%20E%29)**([E](../../../java/util/concurrent/ConcurrentSkipListSet.html "type parameter in ConcurrentSkipListSet") fromElement,[E](../../../java/util/concurrent/ConcurrentSkipListSet.html "type parameter in ConcurrentSkipListSet") toElement)
Returns a view of the portion of this set whose elements range from
fromElement
, inclusive, to
toElement
, exclusive.
[NavigableSet](../../../java/util/NavigableSet.html "interface in java.util")<[E](../../../java/util/concurrent/ConcurrentSkipListSet.html "type parameter in ConcurrentSkipListSet")>
**[tailSet](../../../java/util/concurrent/ConcurrentSkipListSet.html#tailSet%28E%29)**([E](../../../java/util/concurrent/ConcurrentSkipListSet.html "type parameter in ConcurrentSkipListSet") fromElement)
Returns a view of the portion of this set whose elements are greater than or equal to
fromElement
.
[NavigableSet](../../../java/util/NavigableSet.html "interface in java.util")<[E](../../../java/util/concurrent/ConcurrentSkipListSet.html "type parameter in ConcurrentSkipListSet")>
**[tailSet](../../../java/util/concurrent/ConcurrentSkipListSet.html#tailSet%28E,%20boolean%29)**([E](../../../java/util/concurrent/ConcurrentSkipListSet.html "type parameter in ConcurrentSkipListSet") 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
.