Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.commons.collections.collection.AbstractCollectionDecorator
org.apache.commons.collections.set.AbstractSetDecorator
org.apache.commons.collections.set.AbstractSortedSetDecorator
org.apache.commons.collections.set.UnmodifiableSortedSet
public final class UnmodifiableSortedSet
extends AbstractSortedSetDecorator
implements Unmodifiable, Serializable
SortedSet
to ensure it can't be altered.
This class is Serializable from Commons Collections 3.1.
Field Summary |
Fields inherited from class org.apache.commons.collections.collection.AbstractCollectionDecorator | |
collection |
Method Summary | |
boolean |
|
boolean |
|
void |
|
static SortedSet |
|
SortedSet |
|
Iterator |
|
boolean |
|
boolean |
|
boolean |
|
SortedSet |
|
SortedSet |
|
Methods inherited from class org.apache.commons.collections.set.AbstractSortedSetDecorator | |
comparator , first , getSortedSet , headSet , last , subSet , tailSet |
Methods inherited from class org.apache.commons.collections.set.AbstractSetDecorator | |
getSet |
Methods inherited from class org.apache.commons.collections.collection.AbstractCollectionDecorator | |
add , addAll , clear , contains , containsAll , equals , getCollection , hashCode , isEmpty , iterator , remove , removeAll , retainAll , size , toArray , toArray , toString |
public boolean addAll(Collection coll)
- Overrides:
- addAll in interface AbstractCollectionDecorator
public static SortedSet decorate(SortedSet set)
Factory method to create an unmodifiable set.
- Parameters:
set
- the set to decorate, must not be null
public SortedSet headSet(Object toElement)
- Overrides:
- headSet in interface AbstractSortedSetDecorator
public boolean removeAll(Collection coll)
- Overrides:
- removeAll in interface AbstractCollectionDecorator
public boolean retainAll(Collection coll)
- Overrides:
- retainAll in interface AbstractCollectionDecorator
public SortedSet subSet(Object fromElement, Object toElement)
- Overrides:
- subSet in interface AbstractSortedSetDecorator
public SortedSet tailSet(Object fromElement)
- Overrides:
- tailSet in interface AbstractSortedSetDecorator