public interface TypeEncoder<T,U>
| Modifier and Type | Method and Description |
|---|---|
T |
decode(U value)
Decodes an encoded value.
|
U |
encode(T value)
Encodes a value.
|
String |
getAlias()
Returns the "alias" of the types so that the encoded form can be decoded.
|
Class<T> |
resolves()
The java class that the implementations encodes.
|
String getAlias()
U encode(T value) throws TypeEncodingException
value - TypeEncodingExceptionT decode(U value) throws TypeDecodingException
value - TypeDecodingExceptionCopyright © 2014 Calrissian. All rights reserved.