Package org.asnlab.asndt.runtime.conv
Class IntegerConverter
java.lang.Object
org.asnlab.asndt.runtime.conv.AsnConverter
org.asnlab.asndt.runtime.conv.ZahlenConverter
org.asnlab.asndt.runtime.conv.IntegerConverter
The
IntegerConverter can convert INTEGER value object to/from int
value.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconvert(Object object, Buffer buffer, org.asnlab.asndt.runtime.type.IntegerType type, org.asnlab.asndt.runtime.type.Codec codec) convert(Buffer buffer, org.asnlab.asndt.runtime.type.IntegerType type, org.asnlab.asndt.runtime.type.Codec codec) toObject(int value) Return the INTEGER value objectintReturn the int valueMethods inherited from class org.asnlab.asndt.runtime.conv.ZahlenConverter
convert, convert, convert, convertMethods inherited from class org.asnlab.asndt.runtime.conv.AsnConverter
isAnonymous
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
IntegerConverter
public IntegerConverter()
-
-
Method Details
-
convert
public void convert(Object object, Buffer buffer, org.asnlab.asndt.runtime.type.IntegerType type, org.asnlab.asndt.runtime.type.Codec codec) - Overrides:
convertin classZahlenConverter
-
convert
public Object convert(Buffer buffer, org.asnlab.asndt.runtime.type.IntegerType type, org.asnlab.asndt.runtime.type.Codec codec) - Overrides:
convertin classZahlenConverter
-
toValue
Return the int value- Parameters:
object- The INTEGER value object- Returns:
- the int value
-
toObject
Return the INTEGER value object- Parameters:
value- The int value- Returns:
- The INTEGER value object
-