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 TypeMethodDescriptionvoid
convert
(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 objectint
Return the int valueMethods inherited from class org.asnlab.asndt.runtime.conv.ZahlenConverter
convert, convert, convert, convert
Methods 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:
convert
in classZahlenConverter
-
convert
public Object convert(Buffer buffer, org.asnlab.asndt.runtime.type.IntegerType type, org.asnlab.asndt.runtime.type.Codec codec) - Overrides:
convert
in 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
-