|
||||||||||
| 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.CollectionType<T>
public abstract class CollectionType<T extends ASN1Type>
The base class for structured types defined by referencing a single ASN.1 type.
This class provides generic interfaces and common methods for classes that
represents structured types which defined by referencing a single ASN.1 type.
This class is the parent class of SEQUENCE_OF and SET_OF.
SEQUENCE_OF,
SET_OF| Field Summary |
|---|
| Fields inherited from class jp.bitmeister.asn1.type.ASN1Type |
|---|
stringBuilder |
| Constructor Summary | |
|---|---|
protected |
CollectionType(java.lang.Class<T> componentType)
Instantiate a CollectionType instance whose component is the
type. |
| 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. |
java.util.Collection<T> |
collection()
Returns the collection that contained in the data. |
TypeSpecification |
componentSpecification()
Returns a TypeSpecification instance that associated to the
component type. |
java.lang.Class<T> |
componentType()
Returns the type of component of this data. |
int |
hashCode()
Returns a hash code value for this ASN.1 data. |
boolean |
hasValue()
Tests if this ASN.1 data has value. |
protected abstract java.util.Collection<T> |
newCollection()
Instantiates a new collection of the component type. |
int |
size()
Returns the measured size of this instance. |
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 |
|---|
protected CollectionType(java.lang.Class<T> componentType)
CollectionType instance whose component is the
type.
componentType - | Method Detail |
|---|
public java.util.Collection<T> collection()
public java.lang.Class<T> componentType()
public TypeSpecification componentSpecification()
TypeSpecification instance that associated to the
component type.
TypeSpecification instanceprotected abstract java.util.Collection<T> newCollection()
public int size()
SizeCountable
size in interface SizeCountablepublic void clear()
ASN1Type
clear in class ASN1Typepublic boolean hasValue()
ASN1Type
hasValue in class ASN1Typetrue when this ASN.1 data has value.public boolean valueEquals(java.lang.Object other)
ASN1Typetrue when they have same value even if
their types are different.
valueEquals in class ASN1Typeother - The ASN.1 data which to be compared.
true when they have same value.public int hashCode()
ASN1Type
hashCode in class ASN1TypeObject.hashCode()public java.lang.Object clone()
ASN1Type
clone in class ASN1TypeObject.clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||