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
Special implementation of
ICodec that does nothing. This is a
separate class to be able to identify it from non-identity codecs.- Author:
- Philip Helger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDecoded(DATATYPE aInput) Decode the passed source objectgetEncoded(DATATYPE aInput) Encode the passed source object
-
Constructor Details
-
IdentityCodec
public IdentityCodec()
-
-
Method Details
-
getEncoded
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.
-
getDecoded
Description copied from interface:IDecoderDecode the passed source object- Specified by:
getDecodedin interfaceIDecoder<DATATYPE,DATATYPE> - Parameters:
aInput- The source object to be decoded- Returns:
- The decoded value.
-