|
||||||||||
| 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.TreeSet
public class TreeSet
| Nested Class Summary | |
|---|---|
(package private) static class |
TreeSet.IOIterator
|
| Constructor Summary | |
|---|---|
TreeSet()
|
|
TreeSet(Collection c)
|
|
TreeSet(Comparator comparator)
|
|
TreeSet(SortedSet s)
|
|
| Method Summary | |
|---|---|
boolean |
add(Object o)
|
boolean |
addAll(Collection c)
|
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()
|
Object |
clone()
|
Comparator |
comparator()
|
boolean |
contains(Object o)
|
Iterator |
descendingIterator()
Returns an iterator over the elements in this set, in descending order. |
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)
|
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. |
NavigableSet |
navigableHeadSet(Object toElement)
Returns a view of the portion of this set whose elements are strictly less than toElement. |
NavigableSet |
navigableSubSet(Object fromElement,
Object toElement)
Returns a view of the portion of this set whose elements range from fromElement, inclusive, to toElement, exclusive. |
NavigableSet |
navigableTailSet(Object fromElement)
Returns a view of the portion of this set whose elements are greater than or equal to fromElement. |
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()
|
SortedSet |
subSet(Object fromElement,
Object toElement)
|
SortedSet |
tailSet(Object fromElement)
|
Object[] |
toArray()
|
Object[] |
toArray(Object[] a)
|
| Methods inherited from class java.util.AbstractSet |
|---|
equals, hashCode, removeAll |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Set |
|---|
containsAll, equals, hashCode, removeAll, retainAll |
| Constructor Detail |
|---|
public TreeSet()
public TreeSet(Comparator comparator)
public TreeSet(Collection c)
public TreeSet(SortedSet s)
| Method Detail |
|---|
public Object lower(Object e)
NavigableSet
lower in interface NavigableSete - the value to match
public Object floor(Object e)
NavigableSet
floor in interface NavigableSete - the value to match
public Object ceiling(Object e)
NavigableSet
ceiling in interface NavigableSete - the value to match
public Object higher(Object e)
NavigableSet
higher in interface NavigableSete - the value to match
public Object pollFirst()
NavigableSet
pollFirst in interface NavigableSetpublic Object pollLast()
NavigableSet
pollLast in interface NavigableSetpublic Iterator iterator()
NavigableSet
iterator in interface Iterableiterator in interface Collectioniterator in interface Setiterator in interface NavigableSetiterator in class AbstractCollectionpublic Iterator descendingIterator()
NavigableSet
descendingIterator in interface NavigableSet
public NavigableSet navigableSubSet(Object fromElement,
Object toElement)
NavigableSetThe returned set will throw an IllegalArgumentException on an attempt to insert an element outside its range.
navigableSubSet in interface NavigableSetfromElement - low endpoint (inclusive) of the returned settoElement - high endpoint (exclusive) of the returned set
public NavigableSet navigableHeadSet(Object toElement)
NavigableSetThe returned set will throw an IllegalArgumentException on an attempt to insert an element outside its range.
navigableHeadSet in interface NavigableSettoElement - high endpoint (exclusive) of the returned set
public NavigableSet navigableTailSet(Object fromElement)
NavigableSetThe returned set will throw an IllegalArgumentException on an attempt to insert an element outside its range.
navigableTailSet in interface NavigableSetfromElement - low endpoint (inclusive) of the returned set
public Comparator comparator()
comparator in interface SortedSet
public SortedSet subSet(Object fromElement,
Object toElement)
subSet in interface SortedSetpublic SortedSet headSet(Object toElement)
headSet in interface SortedSetpublic SortedSet tailSet(Object fromElement)
tailSet in interface SortedSetpublic Object first()
first in interface SortedSetpublic Object last()
last in interface SortedSetpublic 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 Object[] toArray()
toArray in interface CollectiontoArray in interface SettoArray in class AbstractCollectionpublic Object[] toArray(Object[] a)
toArray in interface CollectiontoArray in interface SettoArray in class AbstractCollectionpublic boolean add(Object o)
add in interface Collectionadd in interface Setadd in class AbstractCollectionpublic boolean remove(Object o)
remove in interface Collectionremove in interface Setremove in class AbstractCollectionpublic boolean addAll(Collection c)
addAll in interface CollectionaddAll in interface SetaddAll in class AbstractCollectionpublic void clear()
clear in interface Collectionclear in interface Setclear in class AbstractCollectionpublic Object clone()
clone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||