Ja.NET Standard Edition 5.0

Documentation API Specification

Contents

Collections.UnmodifiableSortedSet< E > Class Reference

Inherits java::util::Collections::UnmodifiableSet< E >, and java::util::SortedSet< E >.

List of all members.


Public Member Functions

Comparator<?super E > comparator ()
 Answers the Comparator used to compare elements in this SortedSet.
first ()
 Answer the first sorted element in this SortedSet.
SortedSet< E > headSet (E before)
 Answers a SortedSet of the specified portion of this SortedSet which contains elements less than the end element.
last ()
 Answer the last sorted element in this SortedSet.
SortedSet< E > subSet (E start, E end)
 Answers a SortedSet of the specified portion of this SortedSet which contains elements greater or equal to the start element but less than the end element.
SortedSet< E > tailSet (E after)
 Answers a SortedSet of the specified portion of this SortedSet which contains elements greater or equal to the start element.

Package Functions

 UnmodifiableSortedSet (SortedSet< E > set)

Private Attributes

final SortedSet< E > ss

Static Private Attributes

static final long serialVersionUID = -4929149591599911165L

Constructor & Destructor Documentation

UnmodifiableSortedSet ( SortedSet< E >  set  )  [package]


Member Function Documentation

Comparator<? super E> comparator (  ) 

Answers the Comparator used to compare elements in this SortedSet.

Returns:
a Comparator or null if the natural order is used

Implements SortedSet< E >.

E first (  ) 

Answer the first sorted element in this SortedSet.

Returns:
the first sorted element
Exceptions:
NoSuchElementException when this SortedSet is empty

Implements SortedSet< E >.

SortedSet<E> headSet ( end  ) 

Answers a SortedSet of the specified portion of this SortedSet which contains elements less than the end element.

The returned SortedSet is backed by this SortedSet so changes to one are reflected by the other.

Parameters:
end the end element
Returns:
a subset where the elements are less than end
Exceptions:
ClassCastException when the class of the end element is inappropriate for this SubSet
NullPointerException when the end element is null and this SortedSet does not support null elements

Implements SortedSet< E >.

E last (  ) 

Answer the last sorted element in this SortedSet.

Returns:
the last sorted element
Exceptions:
NoSuchElementException when this SortedSet is empty

Implements SortedSet< E >.

SortedSet<E> subSet ( start,
end 
)

Answers a SortedSet of the specified portion of this SortedSet which contains elements greater or equal to the start element but less than the end element.

The returned SortedSet is backed by this SortedMap so changes to one are reflected by the other.

Parameters:
start the start element
end the end element
Returns:
a subset where the elements are greater or equal to start and less than end
Exceptions:
ClassCastException when the class of the start or end element is inappropriate for this SubSet
NullPointerException when the start or end element is null and this SortedSet does not support null elements
IllegalArgumentException when the start element is greater than the end element

Implements SortedSet< E >.

SortedSet<E> tailSet ( start  ) 

Answers a SortedSet of the specified portion of this SortedSet which contains elements greater or equal to the start element.

The returned SortedSet is backed by this SortedSet so changes to one are reflected by the other.

Parameters:
start the start element
Returns:
a subset where the elements are greater or equal to start
Exceptions:
ClassCastException when the class of the start element is inappropriate for this SubSet
NullPointerException when the start element is null and this SortedSet does not support null elements

Implements SortedSet< E >.


Member Data Documentation

final long serialVersionUID = -4929149591599911165L [static, private]

Reimplemented from Collections.UnmodifiableSet< E >.

final SortedSet<E> ss [private]