Overview | Package | Class | Tree | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class java.util.Collections.UnmodifiableSortedMap

java.lang.Object
  |
  +--java.util.Collections.UnmodifiableMap
        |
        +--java.util.Collections.UnmodifiableSortedMap

static class Collections.UnmodifiableSortedMap
extends java.util.Collections.UnmodifiableMap
implements SortedMap, java.io.Serializable
See Also:
Serialized Form

Inner classes inherited from class java.util.Collections.UnmodifiableMap
Collections.UnmodifiableMap.UnmodifiableEntrySet
 
Constructor Summary
Collections.UnmodifiableSortedMap(SortedMap m)
           
 
Method Summary
Comparator comparator()
           
java.lang.Object firstKey()
           
SortedMap headMap(java.lang.Object toKey)
           
java.lang.Object lastKey()
           
SortedMap subMap(java.lang.Object fromKey, java.lang.Object toKey)
           
SortedMap tailMap(java.lang.Object fromKey)
           
 
Methods inherited from class java.util.Collections.UnmodifiableMap
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, putAll, put, remove, size, values
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Constructor Detail

Collections.UnmodifiableSortedMap

Collections.UnmodifiableSortedMap(SortedMap m)
Method Detail

comparator

public Comparator comparator()
Description copied from interface:
Returns the Comparator associated with this SortedMap, or null if it uses its keys' natural ordering.
Specified by:
comparator in interface SortedMap


subMap

public SortedMap subMap(java.lang.Object fromKey,
                        java.lang.Object toKey)
Description copied from interface:
Returns a view of the portion of this SortedMap whose keys range from fromKey, inclusive, to toKey, exclusive. The returned SortedMap is backed by this SortedMap, so changes in the returned SortedMap are reflected in this SortedMap, and vice-versa. The returned Map supports all optional Map operations.

The Map returned by this method will throw an IllegalArgumentException if the user attempts to insert a key outside the specified range.

Specified by:
subMap in interface SortedMap



headMap

public SortedMap headMap(java.lang.Object toKey)
Description copied from interface:
Returns a view of the portion of this SortedMap whose keys are strictly less than toKey. The returned SortedMap is backed by this SortedMap, so changes in the returned SortedMap are reflected in this SortedMap, and vice-versa. The returned Map supports all optional Map operations. The Map returned by this method will throw an IllegalArgumentException if the user attempts to insert a key outside the specified range.
Specified by:
headMap in interface SortedMap


tailMap

public SortedMap tailMap(java.lang.Object fromKey)
Description copied from interface:
Returns a view of the portion of this SortedMap whose keys are greater than or equal to fromKey. The returned SortedMap is backed by this SortedMap, so changes in the returned SortedMap are reflected in this SortedMap, and vice-versa. The returned Map supports all optional Map operations.

The Map returned by this method will throw an IllegalArgumentException if the user attempts to insert a key outside the specified range.

Specified by:
tailMap in interface SortedMap



firstKey

public java.lang.Object firstKey()
Description copied from interface:
Returns the first (lowest) key currently in this SortedMap.
Specified by:
firstKey in interface SortedMap


lastKey

public java.lang.Object lastKey()
Description copied from interface:
Returns the last (highest) key currently in this SortedMap.
Specified by:
lastKey in interface SortedMap


Overview | Package | Class | Tree | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD