public final class

UnmodifiableSortedSet

extends AbstractSortedSetDecorator
implements Serializable Unmodifiable
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

Class Overview

Decorates another SortedSet to ensure it can't be altered.

This class is Serializable from Commons Collections 3.1.

Summary

[Expand]
Inherited Fields
From class org.apache.commons.collections.collection.AbstractCollectionDecorator
Public Methods
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)
[Expand]
Inherited Methods
From class org.apache.commons.collections.set.AbstractSortedSetDecorator
From class org.apache.commons.collections.set.AbstractSetDecorator
From class org.apache.commons.collections.collection.AbstractCollectionDecorator
From class java.lang.Object
From interface java.lang.Iterable
From interface java.util.Collection
From interface java.util.Set
From interface java.util.SortedSet

Public Methods

public boolean add (Object object)

public boolean addAll (Collection coll)

public void clear ()

public static SortedSet decorate (SortedSet set)

Factory method to create an unmodifiable set.

Parameters
set the set to decorate, must not be null
Throws
IllegalArgumentException if set is null

public SortedSet headSet (Object toElement)

public Iterator iterator ()

public boolean remove (Object object)

public boolean removeAll (Collection coll)

public boolean retainAll (Collection coll)

public SortedSet subSet (Object fromElement, Object toElement)

public SortedSet tailSet (Object fromElement)