orbital.util
Class DelegateSortedSet
java.lang.Object
orbital.util.DelegateCollection
orbital.util.DelegateSet
orbital.util.DelegateSortedSet
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Iterable, java.util.Collection, java.util.Set, java.util.SortedSet
- Direct Known Subclasses:
- SignatureBase
public class DelegateSortedSet
- extends DelegateSet
- implements java.util.SortedSet
A DelegateSortedSet that works as a delegator to sets.
- Author:
- André Platzer
- See Also:
- Serialized Form
Constructor Summary |
protected |
DelegateSortedSet(java.util.SortedSet delegatee)
Extend to create a SortedSet delegating to an implementation SortedSet. |
Method Summary |
java.util.Comparator |
comparator()
|
java.lang.Object |
first()
|
java.util.SortedSet |
headSet(java.lang.Object to)
|
java.lang.Object |
last()
|
protected void |
setDelegatee(java.util.Collection delegatee)
Set the delegatee Collection to which operations are delegated. |
protected void |
setDelegatee(java.util.SortedSet delegatee)
|
java.util.SortedSet |
subSet(java.lang.Object from,
java.lang.Object to)
|
java.util.SortedSet |
tailSet(java.lang.Object from)
|
Methods inherited from class orbital.util.DelegateCollection |
add, addAll, clear, contains, containsAll, equals, getDelegatee, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Set |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
DelegateSortedSet
protected DelegateSortedSet(java.util.SortedSet delegatee)
- Extend to create a SortedSet delegating to an implementation SortedSet.
- Parameters:
delegatee
- the implementation-SortedSet to that SortedSet operations are delegated.
setDelegatee
protected void setDelegatee(java.util.SortedSet delegatee)
setDelegatee
protected void setDelegatee(java.util.Collection delegatee)
- Description copied from class:
DelegateCollection
- Set the delegatee Collection to which operations are delegated.
- Overrides:
setDelegatee
in class DelegateSet
- Parameters:
delegatee
- the implementation-Collection that Collection operations are delegated to.
comparator
public java.util.Comparator comparator()
- Specified by:
comparator
in interface java.util.SortedSet
first
public java.lang.Object first()
- Specified by:
first
in interface java.util.SortedSet
last
public java.lang.Object last()
- Specified by:
last
in interface java.util.SortedSet
headSet
public java.util.SortedSet headSet(java.lang.Object to)
- Specified by:
headSet
in interface java.util.SortedSet
tailSet
public java.util.SortedSet tailSet(java.lang.Object from)
- Specified by:
tailSet
in interface java.util.SortedSet
subSet
public java.util.SortedSet subSet(java.lang.Object from,
java.lang.Object to)
- Specified by:
subSet
in interface java.util.SortedSet
Copyright © 1996-2009 André Platzer
All Rights Reserved.