Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.tangosol.util
Class SafeSortedMap.ViewMap

    java.lang.Object
      java.util.AbstractMap
          com.tangosol.util.SafeSortedMap.ViewMap

All Implemented Interfaces:
  java.util.Map, java.util.SortedMap

Enclosing class:
  SafeSortedMap

    protected class SafeSortedMap.ViewMap

extends java.util.AbstractMap
implements java.util.SortedMap

ViewMap provides a SortedMap view over a subset of the SafeSortedMap. A ViewMap may have an inclusive lower and/or an exclusive upper bound.

For example, a ViewMap defined on an SafeSortedMap of Integer keys with lower bound 3 and upper bound 7 would contain any keys in the underlying SafeSortedMap in the range [3, 7).

Nested Class Summary
`protected class` | `SafeSortedMap.ViewMap.EntryIterator` An Iterator over the Entries backed by this ViewMap.
`protected class` | `SafeSortedMap.ViewMap.EntrySet` A Set of Entries backed by this ViewMap.

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

Field Summary
`protected java.lang.Object` | `m_oKeyLower` The key that this ViewMap is (inclusive) lower-bounded by, or null for no lower-bound.
`protected java.lang.Object` | `m_oKeyUpper` The key that this ViewMap is (exclusive) upper-bounded by, or null for no upper-bound

Constructor Summary
`protected` | `SafeSortedMap.ViewMap(java.lang.Object oKeyLower, java.lang.Object oKeyUpper)` Create a new ViewMap over the SafeSortedMap bounded by the specified keys, or null for no-bound.

Method Summary
`java.util.Comparator` | `comparator()`
`boolean` | `containsKey(java.lang.Object oKey)`
`java.util.Set` | `entrySet()`
`java.lang.Object` | `firstKey()`
`protected SafeSortedMap.SkipNode` | `firstNode()` Return the first SkipNode in this ViewMap, or null if there are none.
`java.lang.Object` | `get(java.lang.Object oKey)`
`protected java.lang.Object` | `getLowerBound()` Return the lower bound of this ViewMap.
`protected java.lang.Object` | `getUpperBound()` Return the upper bound of this ViewMap.
`java.util.SortedMap` | `headMap(java.lang.Object toKey)`
`protected boolean` | `inRange(java.lang.Object oKey)` Is the specified key in the range represented by this ViewMap?
`java.lang.Object` | `lastKey()`
`protected SafeSortedMap.SkipNode` | `lastNode()` Return the last SkipNode in this ViewMap, or null if there are none.
`java.lang.Object` | `put(java.lang.Object oKey, java.lang.Object oValue)`
`java.lang.Object` | `remove(java.lang.Object oKey)`
`java.util.SortedMap` | `subMap(java.lang.Object fromKey, java.lang.Object toKey)`
`java.util.SortedMap` | `tailMap(java.lang.Object fromKey)`

Methods inherited from class java.util.AbstractMap
`clear, clone, containsValue, equals, hashCode, isEmpty, keySet, putAll, size, toString, values`

Methods inherited from interface java.util.Map
`clear, containsValue, equals, hashCode, isEmpty, keySet, putAll, size, values`

Field Detail

### m_oKeyLower

    protected final java.lang.Object m_oKeyLower

  The key that this ViewMap is (inclusive) lower-bounded by, or null for no lower-bound.

### m_oKeyUpper

    protected final java.lang.Object m_oKeyUpper

  The key that this ViewMap is (exclusive) upper-bounded by, or null for no upper-bound

Constructor Detail

### SafeSortedMap.ViewMap

    protected SafeSortedMap.ViewMap(java.lang.Object oKeyLower,
                                    java.lang.Object oKeyUpper)

  Create a new ViewMap over the SafeSortedMap bounded by the specified keys, or null for no-bound.

  Parameters:
    `oKeyLower` - the (inclusive) lower-bound key, or null
    `oKeyLower` - the (exclusive) upper-bound key, or null

Method Detail

### entrySet

    public java.util.Set entrySet()

  Specified by:
    `entrySet` in interface `java.util.Map`
  Specified by:
    `entrySet` in class `java.util.AbstractMap`

### put

    public java.lang.Object put(java.lang.Object oKey,
                                java.lang.Object oValue)

  Specified by:
    `put` in interface `java.util.Map`
  Overrides:
    `put` in class `java.util.AbstractMap`

### get

    public java.lang.Object get(java.lang.Object oKey)

  Specified by:
    `get` in interface `java.util.Map`
  Overrides:
    `get` in class `java.util.AbstractMap`

### containsKey

    public boolean containsKey(java.lang.Object oKey)

  Specified by:
    `containsKey` in interface `java.util.Map`
  Overrides:
    `containsKey` in class `java.util.AbstractMap`

### remove

    public java.lang.Object remove(java.lang.Object oKey)

  Specified by:
    `remove` in interface `java.util.Map`
  Overrides:
    `remove` in class `java.util.AbstractMap`

### comparator

    public java.util.Comparator comparator()

  Specified by:
    `comparator` in interface `java.util.SortedMap`

### subMap

    public java.util.SortedMap subMap(java.lang.Object fromKey,
                                      java.lang.Object toKey)

  Specified by:
    `subMap` in interface `java.util.SortedMap`

### headMap

    public java.util.SortedMap headMap(java.lang.Object toKey)

  Specified by:
    `headMap` in interface `java.util.SortedMap`

### tailMap

    public java.util.SortedMap tailMap(java.lang.Object fromKey)

  Specified by:
    `tailMap` in interface `java.util.SortedMap`

### firstKey

    public java.lang.Object firstKey()

  Specified by:
    `firstKey` in interface `java.util.SortedMap`

### lastKey

    public java.lang.Object lastKey()

  Specified by:
    `lastKey` in interface `java.util.SortedMap`

### getLowerBound

    protected java.lang.Object getLowerBound()

  Return the lower bound of this ViewMap.

  Returns:
    the lower bound of this ViewMap

### getUpperBound

    protected java.lang.Object getUpperBound()

  Return the upper bound of this ViewMap.

  Returns:
    the upper bound of this ViewMap

### inRange

    protected boolean inRange(java.lang.Object oKey)

  Is the specified key in the range represented by this ViewMap?

  Parameters:
    `oKey` - the key to test for
  Returns:
    true iff the specified key is in the range represented by this ViewMap

### firstNode

    protected SafeSortedMap.SkipNode firstNode()

  Return the first SkipNode in this ViewMap, or null if there are none.

  Returns:
    the first SkipNode or null if empty, or null

### lastNode

    protected SafeSortedMap.SkipNode lastNode()

  Return the last SkipNode in this ViewMap, or null if there are none.

  Returns:
    the last SkipNode in this ViewMap, or null

Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000, 2010, Oracle. All rights reserved.