Package org.jsonex.jsoncoder.coder
Class CoderBigInteger
- java.lang.Object
-
- org.jsonex.jsoncoder.coder.CoderBigInteger
-
- All Implemented Interfaces:
ICoder<BigInteger>
public class CoderBigInteger extends Object implements ICoder<BigInteger>
-
-
Field Summary
Fields Modifier and Type Field Description static org.jsonex.core.factory.InjectableInstance<CoderBigInteger>it
-
Constructor Summary
Constructors Constructor Description CoderBigInteger()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BigIntegerdecode(TDNode jsonNode, Type type, Object targetObj, BeanCoderContext context)Decode an ObjectTDNodeencode(BigInteger obj, Type type, BeanCoderContext context, TDNode target)Encode an Objectstatic CoderBigIntegerget()Class<BigInteger>getType()
-
-
-
Field Detail
-
it
public static final org.jsonex.core.factory.InjectableInstance<CoderBigInteger> it
-
-
Method Detail
-
get
public static CoderBigInteger get()
-
getType
public Class<BigInteger> getType()
- Specified by:
getTypein interfaceICoder<BigInteger>- Returns:
- The type this Coder is applied to
-
encode
public TDNode encode(BigInteger obj, Type type, BeanCoderContext context, TDNode target)
Description copied from interface:ICoderEncode an Object- Specified by:
encodein interfaceICoder<BigInteger>- Parameters:
obj- The Object to encodecontext- Encode contexttarget- The target json TDNode- Returns:
- The target passed as parameter
-
decode
public BigInteger decode(TDNode jsonNode, Type type, Object targetObj, BeanCoderContext context)
Description copied from interface:ICoderDecode an Object- Specified by:
decodein interfaceICoder<BigInteger>- Parameters:
jsonNode- The json TDNode to be decodedtype- The target typecontext- Decode context- Returns:
- The decoded Object
-
-