Class AbstractConverted<VInner,VOuter>
java.lang.Object
com.comphenix.protocol.wrappers.collection.AbstractConverted<VInner,VOuter>
- Type Parameters:
VInner- - the first type.VOuter- - the second type.
- Direct Known Subclasses:
ConvertedCollection,ConvertedMap,ConvertedMultimap
Represents an object that transform elements of type VInner to type VOuter and back again.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieve a function delegate that converts outer objects to inner objects.Retrieve a function delegate that converts inner objects to outer objects.protected abstract VInnerConvert a value from the outer map to the internal inner map.protected abstract VOuterConvert a value from the inner map to the outer visible map.
-
Constructor Details
-
AbstractConverted
public AbstractConverted()
-
-
Method Details
-
toOuter
Convert a value from the inner map to the outer visible map.- Parameters:
inner- - the inner value.- Returns:
- The outer value.
-
toInner
Convert a value from the outer map to the internal inner map.- Parameters:
outer- - the outer value.- Returns:
- The inner value.
-
getInnerConverter
Retrieve a function delegate that converts outer objects to inner objects.- Returns:
- A function delegate.
-
getOuterConverter
Retrieve a function delegate that converts inner objects to outer objects.- Returns:
- A function delegate.
-