DATATYPE - Codec data typepublic class IdentityCodec<DATATYPE> extends Object implements ICodec<DATATYPE>
ICodec that does nothing. This is a
separate class to be able to identify it from non-identity codecs.| Constructor and Description |
|---|
IdentityCodec() |
| Modifier and Type | Method and Description |
|---|---|
DATATYPE |
getDecoded(DATATYPE aInput)
Decode the passed source object
|
DATATYPE |
getEncoded(DATATYPE aInput)
Encode the passed source object
|
@Nullable public DATATYPE getEncoded(@Nullable DATATYPE aInput)
IEncodergetEncoded in interface IEncoder<DATATYPE,DATATYPE>aInput - The source object to be encodedCopyright © 2014–2017 Philip Helger. All rights reserved.