|
||||||||||
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>
public abstract class PrimitiveType<T>
The base class for primitive ASN.1 types.
This class provides common methods and a value field for classes which represents simple, unconstructive ASN.1 types.
Field Summary |
---|
Fields inherited from class jp.bitmeister.asn1.type.ASN1Type |
---|
stringBuilder |
Constructor Summary | |
---|---|
PrimitiveType()
|
Method Summary | |
---|---|
void |
clear()
Clears the value of this ASN.1 data. |
java.lang.Object |
clone()
Creates and returns a copy of this ASN.1 data. |
protected T |
cloneValue()
Creates and returns a copy of the value set to this data. |
int |
hashCode()
Returns a hash code value for this ASN.1 data. |
boolean |
hasValue()
Tests if this ASN.1 data has value. |
void |
set(T value)
Sets the value to this data. |
T |
value()
Returns the value set to this data. |
boolean |
valueEquals(java.lang.Object other)
Tests if the value of this ASN.1 data equals the value of the other ASN.1 data. |
Methods inherited from class jp.bitmeister.asn1.type.ASN1Type |
---|
accept, equals, instantiate, matches, specification, toString, validate |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PrimitiveType()
Method Detail |
---|
public void set(T value)
value
- The value to be set.public T value()
public void clear()
ASN1Type
clear
in class ASN1Type
public boolean hasValue()
ASN1Type
hasValue
in class ASN1Type
true
when this ASN.1 data has value.protected T cloneValue()
public boolean valueEquals(java.lang.Object other)
ASN1Type
true
when they have same value even if
their types are different.
valueEquals
in class ASN1Type
other
- The ASN.1 data which to be compared.
true
when they have same value.public int hashCode()
ASN1Type
hashCode
in class ASN1Type
Object.hashCode()
public java.lang.Object clone()
ASN1Type
clone
in class ASN1Type
Object.clone()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |