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.
collection| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Object object) |
boolean |
addAll(Collection coll) |
void |
clear() |
static SortedSet |
decorate(SortedSet set)
Factory method to create an unmodifiable set.
|
SortedSet |
headSet(Object toElement) |
Iterator |
iterator() |
boolean |
remove(Object object) |
boolean |
removeAll(Collection coll) |
boolean |
retainAll(Collection coll) |
SortedSet |
subSet(Object fromElement,
Object toElement) |
SortedSet |
tailSet(Object fromElement) |
comparator, first, getSortedSet, lastgetSetcontains, containsAll, equals, getCollection, hashCode, isEmpty, size, toArray, toArray, toStringpublic static SortedSet decorate(SortedSet set)
set - the set to decorate, must not be nullIllegalArgumentException - if set is nullpublic Iterator iterator()
iterator in interface Iterableiterator in interface Collectioniterator in interface Setiterator in class AbstractCollectionDecoratorpublic boolean add(Object object)
add in interface Collectionadd in interface Setadd in class AbstractCollectionDecoratorpublic boolean addAll(Collection coll)
addAll in interface CollectionaddAll in interface SetaddAll in class AbstractCollectionDecoratorpublic void clear()
clear in interface Collectionclear in interface Setclear in class AbstractCollectionDecoratorpublic boolean remove(Object object)
remove in interface Collectionremove in interface Setremove in class AbstractCollectionDecoratorpublic boolean removeAll(Collection coll)
removeAll in interface CollectionremoveAll in interface SetremoveAll in class AbstractCollectionDecoratorpublic boolean retainAll(Collection coll)
retainAll in interface CollectionretainAll in interface SetretainAll in class AbstractCollectionDecoratorpublic SortedSet subSet(Object fromElement, Object toElement)
subSet in interface SortedSetsubSet in class AbstractSortedSetDecoratorpublic SortedSet headSet(Object toElement)
headSet in interface SortedSetheadSet in class AbstractSortedSetDecoratorCopyright © 2001–2015 The Apache Software Foundation. All rights reserved.