Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.1.0

E22843-01


com.tangosol.util
Class ConverterCollections.ConverterSortedMap

java.lang.Object
  extended by com.tangosol.util.Base
      extended by com.tangosol.util.ConverterCollections.ConverterMap
          extended by com.tangosol.util.ConverterCollections.ConverterSortedMap

All Implemented Interfaces:
java.io.Serializable, java.util.Map, java.util.SortedMap
Enclosing class:
ConverterCollections

public static class ConverterCollections.ConverterSortedMap
extends ConverterCollections.ConverterMap
implements java.util.SortedMap, java.io.Serializable

A Converter SortedMap views an underlying SortedMap through a set of key and value Converters.


Nested Class Summary

 

Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry

 

Field Summary

 

Fields inherited from class com.tangosol.util.ConverterCollections.ConverterMap
m_convKeyDown, m_convKeyUp, m_convValDown, m_convValUp, m_map, m_set

 

Constructor Summary
ConverterCollections.ConverterSortedMap(java.util.SortedMap map, Converter convKeyUp, Converter convKeyDown, Converter convValUp, Converter convValDown)
          Constructor.

 

Method Summary
 java.util.Comparator comparator()
          Returns the comparator associated with this sorted map, or null if it uses its keys' natural ordering.
 java.lang.Object firstKey()
          Returns the first (lowest) key currently in this sorted map.
 java.util.SortedMap getSortedMap()
          Return the underlying SortedMap.
 java.util.SortedMap headMap(java.lang.Object toKey)
          Returns a view of the portion of this sorted map whose keys are strictly less than toKey.
protected  java.util.SortedMap instantiateSortedMap(java.util.SortedMap map, Converter convKeyUp, Converter convKeyDown, Converter convValUp, Converter convValDown)
          Create a Converter SortedMap.
 java.lang.Object lastKey()
          Returns the last (highest) key currently in this sorted map.
 java.util.SortedMap subMap(java.lang.Object fromKey, java.lang.Object toKey)
          Returns a view of the portion of this sorted map whose keys range from fromKey, inclusive, to toKey, exclusive.
 java.util.SortedMap tailMap(java.lang.Object fromKey)
          Returns a view of the portion of this sorted map whose keys are greater than or equal to fromKey.

 

Methods inherited from class com.tangosol.util.ConverterCollections.ConverterMap
clear, containsKey, containsValue, entrySet, equals, get, getConverterKeyDown, getConverterKeyUp, getConverterValueDown, getConverterValueUp, getMap, hashCode, instantiateCollection, instantiateEntrySet, instantiateMap, instantiateSet, isEmpty, keySet, put, putAll, remove, size, toString, values

 

Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values

 

Constructor Detail

ConverterCollections.ConverterSortedMap

public ConverterCollections.ConverterSortedMap(java.util.SortedMap map,
                                               Converter convKeyUp,
                                               Converter convKeyDown,
                                               Converter convValUp,
                                               Converter convValDown)
Constructor.
Parameters:
map - the underlying SortedMap
convKeyUp - the Converter to view the underlying SortedMap's keys through
convKeyDown - the Converter to use to pass keys down to the underlying SortedMap
convValUp - the Converter to view the underlying SortedMap's values through
convValDown - the Converter to use to pass values down to the underlying SortedMap

Method Detail

comparator

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

subMap

public java.util.SortedMap subMap(java.lang.Object fromKey,
                                  java.lang.Object toKey)
Returns a view of the portion of this sorted map whose keys range from fromKey, inclusive, to toKey, exclusive. Obeys the general contract of SortedMap.subMap.
Specified by:
subMap in interface java.util.SortedMap
Parameters:
fromKey - low endpoint (inclusive) of the subMap
toKey - high endpoint (exclusive) of the subMap
Returns:
a view of the specified range within this sorted map

headMap

public java.util.SortedMap headMap(java.lang.Object toKey)
Returns a view of the portion of this sorted map whose keys are strictly less than toKey.
Specified by:
headMap in interface java.util.SortedMap
Parameters:
toKey - high endpoint (exclusive) of the subMap
Returns:
a view of the specified initial range of this sorted map

tailMap

public java.util.SortedMap tailMap(java.lang.Object fromKey)
Returns a view of the portion of this sorted map whose keys are greater than or equal to fromKey.
Specified by:
tailMap in interface java.util.SortedMap
Parameters:
fromKey - low endpoint (inclusive) of the tailMap
Returns:
a view of the specified final range of this sorted map

firstKey

public java.lang.Object firstKey()
Returns the first (lowest) key currently in this sorted map.
Specified by:
firstKey in interface java.util.SortedMap
Returns:
the first (lowest) key currently in this sorted map

lastKey

public java.lang.Object lastKey()
Returns the last (highest) key currently in this sorted map.
Specified by:
lastKey in interface java.util.SortedMap
Returns:
the last (highest) key currently in this sorted map

instantiateSortedMap

protected java.util.SortedMap instantiateSortedMap(java.util.SortedMap map,
                                                   Converter convKeyUp,
                                                   Converter convKeyDown,
                                                   Converter convValUp,
                                                   Converter convValDown)
Create a Converter SortedMap.
Parameters:
map - the underlying SortedMap
convKeyUp - the Converter to view the underlying SortedMap's keys through
convKeyDown - the Converter to use to pass keys down to the underlying SortedMap
convValUp - the Converter to view the underlying SortedMap's values through
convValDown - the Converter to use to pass values down to the underlying SortedMap
Returns:
a Converter SortedMap

getSortedMap

public java.util.SortedMap getSortedMap()
Return the underlying SortedMap.
Returns:
the underlying SortedMap

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.1.0

E22843-01


Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.