blob: 97a91610fe6474ac3ba9c730cd12586c956daa2c [file] [log] [blame]
/* GENERATED SOURCE. DO NOT MODIFY. */
package com.android.org.bouncycastle.asn1;
import java.util.Enumeration;
import java.util.Vector;
/**
* Mutable class for building ASN.1 constructed objects.
* @hide This class is not part of the Android public SDK API
*/
@libcore.api.CorePlatformApi
public class ASN1EncodableVector
{
private final Vector v = new Vector();
/**
* Base constructor.
*/
@dalvik.annotation.compat.UnsupportedAppUsage
@libcore.api.CorePlatformApi
public ASN1EncodableVector()
{
}
/**
* Add an encodable to the vector.
*
* @param obj the encodable to add.
*/
@dalvik.annotation.compat.UnsupportedAppUsage
@libcore.api.CorePlatformApi
public void add(ASN1Encodable obj)
{
v.addElement(obj);
}
/**
* Add the contents of another vector.
*
* @param other the vector to add.
*/
public void addAll(ASN1EncodableVector other)
{
for (Enumeration en = other.v.elements(); en.hasMoreElements();)
{
v.addElement(en.nextElement());
}
}
/**
* Return the object at position i in this vector.
*
* @param i the index of the object of interest.
* @return the object at position i.
*/
public ASN1Encodable get(int i)
{
return (ASN1Encodable)v.elementAt(i);
}
/**
* Return the size of the vector.
*
* @return the object count in the vector.
*/
public int size()
{
return v.size();
}
}