bb.util
Class Unmodifiables.UnmodifiableSortedSet<E>

java.lang.Object
  extended by bb.util.Unmodifiables.UnmodifiableCollection<E>
      extended by bb.util.Unmodifiables.UnmodifiableSet<E>
          extended by bb.util.Unmodifiables.UnmodifiableSortedSet<E>
All Implemented Interfaces:
Serializable, Iterable<E>, Collection<E>, Set<E>, SortedSet<E>
Direct Known Subclasses:
Collections2.UnmodifiableNavigableSet
Enclosing class:
Unmodifiables

static class Unmodifiables.UnmodifiableSortedSet<E>
extends Unmodifiables.UnmodifiableSet<E>
implements SortedSet<E>, Serializable

See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
private  SortedSet<E> ss
           
 
Fields inherited from class bb.util.Unmodifiables.UnmodifiableCollection
c
 
Constructor Summary
Unmodifiables.UnmodifiableSortedSet(SortedSet<E> s)
           
 
Method Summary
 Comparator<? super E> comparator()
           
 E first()
           
 SortedSet<E> headSet(E toElement)
           
 E last()
           
 SortedSet<E> subSet(E fromElement, E toElement)
           
 SortedSet<E> tailSet(E fromElement)
           
 
Methods inherited from class bb.util.Unmodifiables.UnmodifiableSet
equals, hashCode
 
Methods inherited from class bb.util.Unmodifiables.UnmodifiableCollection
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, 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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

ss

private final SortedSet<E> ss
Constructor Detail

Unmodifiables.UnmodifiableSortedSet

Unmodifiables.UnmodifiableSortedSet(SortedSet<E> s)
Method Detail

comparator

public Comparator<? super E> comparator()
Specified by:
comparator in interface SortedSet<E>

subSet

public SortedSet<E> subSet(E fromElement,
                           E toElement)
Specified by:
subSet in interface SortedSet<E>

headSet

public SortedSet<E> headSet(E toElement)
Specified by:
headSet in interface SortedSet<E>

tailSet

public SortedSet<E> tailSet(E fromElement)
Specified by:
tailSet in interface SortedSet<E>

first

public E first()
Specified by:
first in interface SortedSet<E>

last

public E last()
Specified by:
last in interface SortedSet<E>