|
||||||||||
| 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.math.BigInteger>
jp.bitmeister.asn1.type.builtin.BigINTEGER
public class BigINTEGER
An implementation of ASN.1 'INTEGER' type that can contain arbitrary-precision integer value.
An instance of this class represents an 'INTEGER' type data that needs to
contain an arbitrary-precision value. It has a BigInteger
value.
INTEGER| Field Summary |
|---|
| Fields inherited from class jp.bitmeister.asn1.type.ASN1Type |
|---|
stringBuilder |
| Constructor Summary | |
|---|---|
BigINTEGER()
Instantiates an empty INTEGER. |
|
BigINTEGER(java.math.BigInteger value)
Instantiates an INTEGER and initialize it with the
BigInteger value. |
|
BigINTEGER(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.math.BigInteger,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. |
|
void |
set(long value)
Sets the long value to this data. |
|
| 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 BigINTEGER()
INTEGER.
public BigINTEGER(java.math.BigInteger value)
INTEGER and initialize it with the
BigInteger value.
value - The value to be assigned.public BigINTEGER(long value)
INTEGER and initialize it with the long
value.
value - The value to be assigned.| Method Detail |
|---|
public void set(long value)
long value to this data.
value - The value to be assigned.public boolean isLongValue()
long value.
isLongValue in class AbstractInteger<java.math.BigInteger>true when the value of this data is in the range of
long.public boolean isIntValue()
int value.
isIntValue in class AbstractInteger<java.math.BigInteger>true when the value of this data is in the range of
int.public java.util.Map<java.math.BigInteger,java.lang.String> getNamedNumberMap()
AbstractInteger
getNamedNumberMap in class AbstractInteger<java.math.BigInteger>
public <R,E extends java.lang.Throwable> R accept(ASN1Visitor<R,E> visitor)
throws E extends java.lang.Throwable
ASN1TypeASN1Visitor and calls a visit method of the
visitor.
accept in class ASN1Typevisitor - The visitor.
E - When an error occurred in the visit method of the
visitor.
E extends java.lang.Throwableprotected boolean isEnum()
AbstractInteger
isEnum in class AbstractInteger<java.math.BigInteger>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 | |||||||||