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