public class ReverseEncoder<T> extends Object implements TypeEncoder<T,String>
| Constructor and Description |
|---|
ReverseEncoder(TypeEncoder<T,String> encoder) |
| Modifier and Type | Method and Description |
|---|---|
T |
decode(String value)
Decodes the provided value.
|
String |
encode(T value)
Encodes a value.
|
String |
getAlias()
Returns the "alias" of the type so that the encoded form can be decoded.
|
Class<T> |
resolves()
The java class that the implementations encodes.
|
public ReverseEncoder(TypeEncoder<T,String> encoder)
public String getAlias()
TypeEncodergetAlias in interface TypeEncoder<T,String>public Class<T> resolves()
TypeEncoderresolves in interface TypeEncoder<T,String>public String encode(T value)
TypeEncoderencode in interface TypeEncoder<T,String>public T decode(String value)
TypeEncoderdecode in interface TypeEncoder<T,String>Copyright © 2018 Calrissian. All rights reserved.