Package org.asnlab.asndt.runtime.conv
Class LongConverter
java.lang.Object
org.asnlab.asndt.runtime.conv.AsnConverter
org.asnlab.asndt.runtime.conv.ZahlenConverter
org.asnlab.asndt.runtime.conv.LongConverter
The
IntegerConverter
can convert INTEGER value object to/from
long 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
(long value) Return the INTEGER value objectlong
Return the long 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
-
LongConverter
public LongConverter()
-
-
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 long value- Parameters:
object
- The INTEGER value object- Returns:
- The long value
-
toObject
Return the INTEGER value object- Parameters:
value
- The long value- Returns:
- the INTEGER value object
-