Class UnmodifiableSortedSet
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
- All Implemented Interfaces:
- Serializable,- Iterable,- Collection,- Set,- SortedSet,- Unmodifiable
public final class UnmodifiableSortedSet
extends AbstractSortedSetDecorator
implements Unmodifiable, Serializable
Decorates another 
SortedSet to ensure it can't be altered.
 This class is Serializable from Commons Collections 3.1.
- Since:
- Commons Collections 3.0
- Version:
- $Revision: 646777 $ $Date: 2008-04-10 14:33:15 +0200 (Thu, 10 Apr 2008) $
- Author:
- Stephen Colebourne
- See Also:
- 
Field SummaryFields inherited from class org.apache.commons.collections.collection.AbstractCollectionDecoratorcollection
- 
Method SummaryModifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection coll) voidclear()static SortedSetFactory method to create an unmodifiable set.iterator()booleanbooleanremoveAll(Collection coll) booleanretainAll(Collection coll) Methods inherited from class org.apache.commons.collections.set.AbstractSortedSetDecoratorcomparator, first, getSortedSet, lastMethods inherited from class org.apache.commons.collections.set.AbstractSetDecoratorgetSetMethods inherited from class org.apache.commons.collections.collection.AbstractCollectionDecoratorcontains, containsAll, equals, getCollection, hashCode, isEmpty, size, toArray, toArray, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.CollectionparallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.Setcontains, containsAll, equals, hashCode, isEmpty, size, toArray, toArrayMethods inherited from interface java.util.SortedSetspliterator
- 
Method Details- 
decorateFactory method to create an unmodifiable set.- Parameters:
- set- the set to decorate, must not be null
- Throws:
- IllegalArgumentException- if set is null
 
- 
iterator- Specified by:
- iteratorin interface- Collection
- Specified by:
- iteratorin interface- Iterable
- Specified by:
- iteratorin interface- Set
- Overrides:
- iteratorin class- AbstractCollectionDecorator
 
- 
add- Specified by:
- addin interface- Collection
- Specified by:
- addin interface- Set
- Overrides:
- addin class- AbstractCollectionDecorator
 
- 
addAll- Specified by:
- addAllin interface- Collection
- Specified by:
- addAllin interface- Set
- Overrides:
- addAllin class- AbstractCollectionDecorator
 
- 
clearpublic void clear()- Specified by:
- clearin interface- Collection
- Specified by:
- clearin interface- Set
- Overrides:
- clearin class- AbstractCollectionDecorator
 
- 
remove- Specified by:
- removein interface- Collection
- Specified by:
- removein interface- Set
- Overrides:
- removein class- AbstractCollectionDecorator
 
- 
removeAll- Specified by:
- removeAllin interface- Collection
- Specified by:
- removeAllin interface- Set
- Overrides:
- removeAllin class- AbstractCollectionDecorator
 
- 
retainAll- Specified by:
- retainAllin interface- Collection
- Specified by:
- retainAllin interface- Set
- Overrides:
- retainAllin class- AbstractCollectionDecorator
 
- 
subSet- Specified by:
- subSetin interface- SortedSet
- Overrides:
- subSetin class- AbstractSortedSetDecorator
 
- 
headSet- Specified by:
- headSetin interface- SortedSet
- Overrides:
- headSetin class- AbstractSortedSetDecorator
 
- 
tailSet- Specified by:
- tailSetin interface- SortedSet
- Overrides:
- tailSetin class- AbstractSortedSetDecorator
 
 
-