Package com.helger.commons.codec
Class IdentityCodec<DATATYPE>
- java.lang.Object
-
- com.helger.commons.codec.IdentityCodec<DATATYPE>
-
- Type Parameters:
DATATYPE- Codec data type
- All Implemented Interfaces:
ICodec<DATATYPE>,IDecoder<DATATYPE,DATATYPE>,IEncoder<DATATYPE,DATATYPE>
- Direct Known Subclasses:
IdentityByteArrayCodec
public class IdentityCodec<DATATYPE> extends Object implements ICodec<DATATYPE>
Special implementation ofICodecthat does nothing. This is a separate class to be able to identify it from non-identity codecs.- Author:
- Philip Helger
-
-
Constructor Summary
Constructors Constructor Description IdentityCodec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DATATYPEgetDecoded(DATATYPE aInput)Decode the passed source objectDATATYPEgetEncoded(DATATYPE aInput)Encode the passed source object
-
-
-
Method Detail
-
getEncoded
@Nullable public DATATYPE getEncoded(@Nullable DATATYPE aInput)
Description copied from interface:IEncoderEncode the passed source object- Specified by:
getEncodedin interfaceIEncoder<DATATYPE,DATATYPE>- Parameters:
aInput- The source object to be encoded- Returns:
- The encoded value.
-
-