public abstract class

AbstractSortedSetDecorator

extends AbstractSetDecorator
implements SortedSet<E>
java.lang.Object
   ↳ org.apache.commons.collections.collection.AbstractCollectionDecorator
     ↳ org.apache.commons.collections.set.AbstractSetDecorator
       ↳ org.apache.commons.collections.set.AbstractSortedSetDecorator
Known Direct Subclasses

Class Overview

Decorates another SortedSet to provide additional behaviour.

Methods are forwarded directly to the decorated set.

Summary

[Expand]
Inherited Fields
From class org.apache.commons.collections.collection.AbstractCollectionDecorator
Protected Constructors
AbstractSortedSetDecorator()
Constructor only used in deserialization, do not use otherwise.
AbstractSortedSetDecorator(Set set)
Constructor that wraps (not copies).
Public Methods
Comparator comparator()
Object first()
SortedSet headSet(Object toElement)
Object last()
SortedSet subSet(Object fromElement, Object toElement)
SortedSet tailSet(Object fromElement)
Protected Methods
SortedSet getSortedSet()
Gets the sorted set being decorated.
[Expand]
Inherited Methods
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

Protected Constructors

protected AbstractSortedSetDecorator ()

Constructor only used in deserialization, do not use otherwise.

protected AbstractSortedSetDecorator (Set set)

Constructor that wraps (not copies).

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

Public Methods

public Comparator comparator ()

public Object first ()

public SortedSet headSet (Object toElement)

public Object last ()

public SortedSet subSet (Object fromElement, Object toElement)

public SortedSet tailSet (Object fromElement)

Protected Methods

protected SortedSet getSortedSet ()

Gets the sorted set being decorated.

Returns
  • the decorated set