|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjp.bitmeister.asn1.type.ASN1Type
jp.bitmeister.asn1.type.PrimitiveType<T>
jp.bitmeister.asn1.type.AbstractInteger<java.lang.Long>
jp.bitmeister.asn1.type.builtin.INTEGER
public class INTEGER
An implementation of ASN.1 'INTEGER' type that contains Long
value.
An instance of this class represents an 'INTEGER' type data, and has a
Long
value. If the data needs to contain value which is
bigger than Long.MAX_VALUE
or smaller than Long.MIN_VALUE
,
BigINTEGER
type shall be used.
BigINTEGER
Field Summary |
---|
Fields inherited from class jp.bitmeister.asn1.type.ASN1Type |
---|
stringBuilder |
Constructor Summary | |
---|---|
INTEGER()
Instantiates an empty INTEGER . |
|
INTEGER(long value)
Instantiates an INTEGER and initialize it with the long
value. |
Method Summary | ||
---|---|---|
|
accept(ASN1Visitor<R,E> visitor)
Accepts the ASN1Visitor and calls a visit method of the
visitor. |
|
java.util.Map<java.lang.Long,java.lang.String> |
getNamedNumberMap()
Returns map of enumerations related to this type. |
|
protected boolean |
isEnum()
Tests if base type of this data is ASN.1 'ENUMERATED'. |
|
boolean |
isIntValue()
Tests if the value of this data is in the range of int value. |
|
boolean |
isLongValue()
Tests if the value of this data is in the range of long value. |
Methods inherited from class jp.bitmeister.asn1.type.AbstractInteger |
---|
compareTo, identifier, intValue, longValue, set, set |
Methods inherited from class jp.bitmeister.asn1.type.PrimitiveType |
---|
clear, clone, cloneValue, hashCode, hasValue, value, valueEquals |
Methods inherited from class jp.bitmeister.asn1.type.ASN1Type |
---|
equals, instantiate, matches, specification, toString, validate |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public INTEGER()
INTEGER
.
public INTEGER(long value)
INTEGER
and initialize it with the long
value.
value
- The value to be assigned.Method Detail |
---|
public java.util.Map<java.lang.Long,java.lang.String> getNamedNumberMap()
AbstractInteger
getNamedNumberMap
in class AbstractInteger<java.lang.Long>
public <R,E extends java.lang.Throwable> R accept(ASN1Visitor<R,E> visitor) throws E extends java.lang.Throwable
ASN1Type
ASN1Visitor
and calls a visit
method of the
visitor.
accept
in class ASN1Type
visitor
- The visitor.
E
- When an error occurred in the visit
method of the
visitor.
E extends java.lang.Throwable
public boolean isLongValue()
AbstractInteger
long
value.
isLongValue
in class AbstractInteger<java.lang.Long>
true
when the value of this data is in the range of
long
.public boolean isIntValue()
AbstractInteger
int
value.
isIntValue
in class AbstractInteger<java.lang.Long>
true
when the value of this data is in the range of
int
.protected boolean isEnum()
AbstractInteger
isEnum
in class AbstractInteger<java.lang.Long>
true
if base type of this data is ASN.1 'ENUMERATED'.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |