Class ConverterCollections.AbstractConverterEntry<FK,TK,FV,TV>

java.lang.Object
com.tangosol.util.ConverterCollections.AbstractConverterEntry<FK,TK,FV,TV>
Type Parameters:
FK - the type of the keys in the underlying Entry
TK - the type that the keys should be converted to
FV - the type of the values in the underlying Entry
TV - the type that the values should be converted to
All Implemented Interfaces:
Serializable, Map.Entry<TK,TV>
Direct Known Subclasses:
ConverterCollections.ConverterEntry, ConverterCollections.ConverterEntrySet.ConverterEntry
Enclosing class:
ConverterCollections

protected abstract static class ConverterCollections.AbstractConverterEntry<FK,TK,FV,TV> extends Object implements Map.Entry<TK,TV>, Serializable
An abstract Map Entry that lazily converts the key and value.
See Also:
  • Field Details

    • m_entry

      protected final Map.Entry<FK,FV> m_entry
      The underlying entry.
    • m_oKeyUp

      protected transient TK m_oKeyUp
      Cached converted key.
    • m_oValueUp

      protected transient TV m_oValueUp
      Cached converted value.
  • Constructor Details

    • AbstractConverterEntry

      protected AbstractConverterEntry(Map.Entry<FK,FV> entry)
      Constructor.
      Parameters:
      entry - the Entry to wrap
  • Method Details

    • getConverterKeyUp

      protected abstract Converter<FK,TK> 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<FV,TV> 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<TV,FV> 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 TK getKey()
      Specified by:
      getKey in interface Map.Entry<FK,TK>
    • getValue

      public TV getValue()
      Specified by:
      getValue in interface Map.Entry<FK,TK>
    • setValue

      public TV setValue(TV value)
      Specified by:
      setValue in interface Map.Entry<FK,TK>
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in interface Map.Entry<FK,TK>
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface Map.Entry<FK,TK>
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getEntry

      public Map.Entry<FK,FV> getEntry()
      Return the underlying Map.Entry.
      Returns:
      the underlying Map.Entry