Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


com.tangosol.util
Class ConverterCollections.AbstractConverterEntry

java.lang.Object
  extended by com.tangosol.util.Base
      extended by com.tangosol.util.ConverterCollections.AbstractConverterEntry

All Implemented Interfaces:
java.io.Serializable, java.util.Map.Entry
Direct Known Subclasses:
ConverterCollections.ConverterEntry, ConverterCollections.ConverterEntrySet.ConverterEntry
Enclosing class:
ConverterCollections

protected abstract static class ConverterCollections.AbstractConverterEntry
extends Base
implements java.util.Map.Entry, java.io.Serializable

An abstract Map Entry that lazily converts the key and value.


Field Summary
protected  java.util.Map.Entry m_entry
          The underlying entry.
protected  java.lang.Object m_oKeyUp
          Cached converted key.
protected  java.lang.Object m_oValueUp
          Cached converted value.

 

Constructor Summary
protected ConverterCollections.AbstractConverterEntry(java.util.Map.Entry entry)
          Constructor.

 

Method Summary
 boolean equals(java.lang.Object o)
          Compares the specified object with this entry for equality.
protected abstract  Converter getConverterKeyUp()
          Return the Converter to view the underlying Entry's key through.
protected abstract  Converter getConverterValueDown()
          Return the Converter used to change value in the underlying Entry.
protected abstract  Converter getConverterValueUp()
          Return the Converter to view the underlying Entry's value through.
 java.util.Map.Entry getEntry()
          Return the underlying Map.Entry.
 java.lang.Object getKey()
          Returns the key corresponding to this entry.
 java.lang.Object getValue()
          Returns the value corresponding to this entry.
 int hashCode()
          Returns the hash code value for this map entry.
 java.lang.Object setValue(java.lang.Object value)
          Replaces the value corresponding to this entry with the specified value.
 java.lang.String toString()
          Return a String description for this Entry.

 

Field Detail

m_entry

protected java.util.Map.Entry m_entry
The underlying entry.

m_oKeyUp

protected transient java.lang.Object m_oKeyUp
Cached converted key.

m_oValueUp

protected transient java.lang.Object m_oValueUp
Cached converted value.

Constructor Detail

ConverterCollections.AbstractConverterEntry

protected ConverterCollections.AbstractConverterEntry(java.util.Map.Entry entry)
Constructor.
Parameters:
entry - the Entry to wrap

Method Detail

getConverterKeyUp

protected abstract Converter getConverterKeyUp()
Return the Converter to view the underlying Entry's key through.
Returns:
the Converter to view the underlying Entry's key through

getConverterValueUp

protected abstract Converter getConverterValueUp()
Return the Converter to view the underlying Entry's value through.
Returns:
the Converter to view the underlying Entry's value through

getConverterValueDown

protected abstract Converter getConverterValueDown()
Return the Converter used to change value in the underlying Entry.
Returns:
the Converter used to change value in the underlying Entry

getKey

public java.lang.Object getKey()
Returns the key corresponding to this entry.
Specified by:
getKey in interface java.util.Map.Entry
Returns:
the key corresponding to this entry

getValue

public java.lang.Object getValue()
Returns the value corresponding to this entry.
Specified by:
getValue in interface java.util.Map.Entry
Returns:
the value corresponding to this entry

setValue

public java.lang.Object setValue(java.lang.Object value)
Replaces the value corresponding to this entry with the specified value.
Specified by:
setValue in interface java.util.Map.Entry
Parameters:
value - new value to be stored in this entry
Returns:
old value corresponding to the entry
Throws:
java.lang.ClassCastException - if the class of the specified value prevents it from being stored in the backing map

equals

public boolean equals(java.lang.Object o)
Compares the specified object with this entry for equality.
Specified by:
equals in interface java.util.Map.Entry
Parameters:
o - object to be compared for equality with this map entry
Returns:
true if the specified object is equal to this map entry

hashCode

public int hashCode()
Returns the hash code value for this map entry.
Specified by:
hashCode in interface java.util.Map.Entry
Returns:
the hash code value for this map entry
See Also:
Object.hashCode(), Object.equals(Object), Map.Entry.equals(Object)

toString

public java.lang.String toString()
Return a String description for this Entry.
Returns:
a String description of the Entry

getEntry

public java.util.Map.Entry getEntry()
Return the underlying Map.Entry.
Returns:
the underlying Map.Entry

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


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