Top Description Fields Constructors Methods
org.bouncycastle.asn1

public Class ASN1EncodableVector

extends Object
Class Inheritance

Mutable class for building ASN.1 constructed objects such as SETs or SEQUENCEs.

Field Summary

Modifier and TypeField and Description
private boolean
private static final int
private int
private ASN1Encodable[]
pack-priv static final ASN1Encodable[]

Constructor Summary

AccessConstructor and Description
public
public
ASN1EncodableVector(int initialCapacity)

Method Summary

Modifier and TypeMethod and Description
public void
add(ASN1Encodable element)

public void
public void
pack-priv static ASN1Encodable[]
pack-priv ASN1Encodable[]
private void
doAddAll(ASN1Encodable[] others, String nullMsg)

public ASN1Encodable

Returns:

the object at position i.
get
(int
the index of the object of interest.
i
)

Return the object at position i in this vector.

private void
reallocate(int minCapacity)

public int

Returns:

the object count in the vector.
size
()

Return the size of the vector.

pack-priv ASN1Encodable[]
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

copyOnWriteback to summary
private boolean copyOnWrite
DEFAULT_CAPACITYback to summary
private static final int DEFAULT_CAPACITY
elementCountback to summary
private int elementCount
elementsback to summary
private ASN1Encodable[] elements
EMPTY_ELEMENTSback to summary
pack-priv static final ASN1Encodable[] EMPTY_ELEMENTS

Constructor Detail

ASN1EncodableVectorback to summary
public ASN1EncodableVector()
ASN1EncodableVectorback to summary
public ASN1EncodableVector(int initialCapacity)

Method Detail

addback to summary
public void add(ASN1Encodable element)
addAllback to summary
public void addAll(ASN1Encodable[] others)
addAllback to summary
public void addAll(ASN1EncodableVector other)
cloneElementsback to summary
pack-priv static ASN1Encodable[] cloneElements(ASN1Encodable[] elements)
copyElementsback to summary
pack-priv ASN1Encodable[] copyElements()
doAddAllback to summary
private void doAddAll(ASN1Encodable[] others, String nullMsg)
getback to summary
public ASN1Encodable get(int i)

Return the object at position i in this vector.

Parameters
i:int

the index of the object of interest.

Returns:ASN1Encodable

the object at position i.

reallocateback to summary
private void reallocate(int minCapacity)
sizeback to summary
public int size()

Return the size of the vector.

Returns:int

the object count in the vector.

takeElementsback to summary
pack-priv ASN1Encodable[] takeElements()