java.io.Serializable, Unmodifiablepublic final class UnmodifiableSortedSet extends AbstractSortedSetDecorator implements Unmodifiable, java.io.Serializable
SortedSet to ensure it can't be altered.
This class is Serializable from Commons Collections 3.1.
collection| Modifier and Type | Method | Description |
|---|---|---|
boolean |
add(java.lang.Object object) |
|
boolean |
addAll(java.util.Collection coll) |
|
void |
clear() |
|
static java.util.SortedSet |
decorate(java.util.SortedSet set) |
Factory method to create an unmodifiable set.
|
java.util.SortedSet |
headSet(java.lang.Object toElement) |
|
java.util.Iterator |
iterator() |
|
boolean |
remove(java.lang.Object object) |
|
boolean |
removeAll(java.util.Collection coll) |
|
boolean |
retainAll(java.util.Collection coll) |
|
java.util.SortedSet |
subSet(java.lang.Object fromElement,
java.lang.Object toElement) |
|
java.util.SortedSet |
tailSet(java.lang.Object fromElement) |
contains, containsAll, equals, getCollection, hashCode, isEmpty, size, toArray, toArray, toStringgetSetcomparator, first, getSortedSet, lastclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static java.util.SortedSet decorate(java.util.SortedSet set)
set - the set to decorate, must not be nulljava.lang.IllegalArgumentException - if set is nullpublic java.util.Iterator iterator()
iterator in class AbstractCollectionDecoratorpublic boolean add(java.lang.Object object)
add in class AbstractCollectionDecoratorpublic boolean addAll(java.util.Collection coll)
addAll in class AbstractCollectionDecoratorpublic void clear()
clear in class AbstractCollectionDecoratorpublic boolean remove(java.lang.Object object)
remove in class AbstractCollectionDecoratorpublic boolean removeAll(java.util.Collection coll)
removeAll in class AbstractCollectionDecoratorpublic boolean retainAll(java.util.Collection coll)
retainAll in class AbstractCollectionDecoratorpublic java.util.SortedSet subSet(java.lang.Object fromElement,
java.lang.Object toElement)
subSet in class AbstractSortedSetDecoratorpublic java.util.SortedSet headSet(java.lang.Object toElement)
headSet in class AbstractSortedSetDecoratorpublic java.util.SortedSet tailSet(java.lang.Object fromElement)
tailSet in class AbstractSortedSetDecoratorCopyright © 2001-2017 Apache Software Foundation. All Rights Reserved.