public abstract static class AbstractTypedMap.Converter<E,I> extends Object
| Constructor and Description |
|---|
AbstractTypedMap.Converter() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
equals(I left,
I right)
Compare internal values, the passed argument are never null so the method does not need to check nullity of the
arguments.
|
protected abstract E |
getExternal(I internal)
Converts the internal value into its external representation.
|
protected abstract I |
getInternal(E external)
Converts the external value to the its internal representation that will be stored in the map.
|
static <T> AbstractTypedMap.Converter<T,T> |
identityConverter() |
public static <T> AbstractTypedMap.Converter<T,T> identityConverter()
protected abstract I getInternal(E external) throws IllegalArgumentException, ClassCastException
external - the external valueClassCastException - if the class of the specified argument prevents it from being converterIllegalArgumentException - if some aspect of this argument prevents it from being convertedprotected abstract E getExternal(I internal) throws IllegalArgumentException, ClassCastException
internal - the internal valueClassCastException - if the class of the specified argument prevents it from being converterIllegalArgumentException - if some aspect of this argument prevents it from being convertedCopyright © 2025 JBoss by Red Hat. All Rights Reserved.