|
||||||||||
| 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<java.lang.Double>
jp.bitmeister.asn1.type.builtin.REAL
public class REAL
Represents ASN.1 'REAL' type.
An instance of this class represents a 'REAL' type data, and contains a
Double value.
| Field Summary |
|---|
| Fields inherited from class jp.bitmeister.asn1.type.ASN1Type |
|---|
stringBuilder |
| Constructor Summary | |
|---|---|
REAL()
Instantiates an empty REAL. |
|
REAL(java.lang.Double value)
Instantiates a REAL and initialize it with the Double
value. |
|
REAL(java.lang.Float value)
Instantiates a REAL and initialize it with the Float
value. |
|
REAL(long mantissa,
int base,
int exponent)
Instantiates a REAL and initialize it with the value specified by
the M*B^E formula. |
|
| Method Summary | ||
|---|---|---|
|
accept(ASN1Visitor<E> visitor)
Accepts the ASN1Visitor and calls a visit method of the
visitor. |
|
int |
compareTo(ASN1Type other)
Compares the value of this instance to the value of the other instance. |
|
void |
set(java.lang.Float value)
Sets the Float value to the instance. |
|
void |
set(long mantissa,
int base,
int exponent)
Sets the value specified by the M*B^E formula to the instance. |
|
| Methods inherited from class jp.bitmeister.asn1.type.PrimitiveType |
|---|
clear, clone, cloneValue, hashCode, hasValue, set, 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 REAL()
REAL.
public REAL(java.lang.Double value)
REAL and initialize it with the Double
value.
value - The value assigned to the instance.public REAL(java.lang.Float value)
REAL and initialize it with the Float
value.
value - The value assigned to the instance.
public REAL(long mantissa,
int base,
int exponent)
REAL and initialize it with the value specified by
the M*B^E formula.
mantissa - Mantissa.base - Base. It can take values 2 or 10.exponent - Exponent.| Method Detail |
|---|
public void set(java.lang.Float value)
Float value to the instance.
value - The value assigned to the instance.
public void set(long mantissa,
int base,
int exponent)
mantissa - Mantissa.base - Base. It can take values 2 or 10.exponent - Exponent.public int compareTo(ASN1Type other)
ValueComparable
compareTo in interface ValueComparableother - The instance whose value to be compared.
public <E extends java.lang.Throwable> void accept(ASN1Visitor<E> visitor)
throws E extends java.lang.Throwable
ASN1TypeASN1Visitor and calls a visit method of the
visitor.
accept in class ASN1Typevisitor - The visitor.
E extends java.lang.Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||