Package com.tangosol.util
Class ConverterCollections.ConverterEntry<FK,TK,FV,TV>
- java.lang.Object
-
- com.tangosol.util.ConverterCollections.AbstractConverterEntry<FK,TK,FV,TV>
-
- com.tangosol.util.ConverterCollections.ConverterEntry<FK,TK,FV,TV>
-
- Type Parameters:
FK- the type of the keys in the underlying EntryTK- the type that the keys should be converted toFV- the type of the values in the underlying EntryTV- the type that the values should be converted to
- All Implemented Interfaces:
Serializable,Map.Entry<TK,TV>
- Direct Known Subclasses:
ConverterCollections.ConverterCacheEntry
- Enclosing class:
- ConverterCollections
public static class ConverterCollections.ConverterEntry<FK,TK,FV,TV> extends ConverterCollections.AbstractConverterEntry<FK,TK,FV,TV>
A Map Entry that lazily converts the key and value.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Converter<FK,TK>m_convKeyUpThe Converter used to view the Entry's key.protected Converter<TV,FV>m_convValDownThe Converter used to store the Entry's value.protected Converter<FV,TV>m_convValUpThe Converter used to view the Entry's value.-
Fields inherited from class com.tangosol.util.ConverterCollections.AbstractConverterEntry
m_entry, m_oKeyUp, m_oValueUp
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Converter<FK,TK>getConverterKeyUp()Return the Converter to view the underlying Entry's key through.protected Converter<TV,FV>getConverterValueDown()Return the Converter used to change value in the underlying Entry.protected Converter<FV,TV>getConverterValueUp()Return the Converter to view the underlying Entry's value through.
-
-
-
Constructor Detail
-
ConverterEntry
public ConverterEntry(Map.Entry<FK,FV> entry, Converter<FK,TK> convKeyUp, Converter<FV,TV> convValUp, Converter<TV,FV> convValDown)
Constructor.- Parameters:
entry- the Entry to wrapconvKeyUp- the Converter to view the underlying Entry's keys throughconvValUp- the Converter to view the underlying Entry's values throughconvValDown- the Converter to use to pass values down to the underlying Entry
-
-
Method Detail
-
getConverterKeyUp
protected Converter<FK,TK> getConverterKeyUp()
Return the Converter to view the underlying Entry's key through.- Specified by:
getConverterKeyUpin classConverterCollections.AbstractConverterEntry<FK,TK,FV,TV>- Returns:
- the Converter to view the underlying Entry's key through
-
getConverterValueUp
protected Converter<FV,TV> getConverterValueUp()
Return the Converter to view the underlying Entry's value through.- Specified by:
getConverterValueUpin classConverterCollections.AbstractConverterEntry<FK,TK,FV,TV>- Returns:
- the Converter to view the underlying Entry's value through
-
getConverterValueDown
protected Converter<TV,FV> getConverterValueDown()
Return the Converter used to change value in the underlying Entry.- Specified by:
getConverterValueDownin classConverterCollections.AbstractConverterEntry<FK,TK,FV,TV>- Returns:
- the Converter used to change value in the underlying Entry
-
-