The Attributes class contains the following constructors:
Attributes()
Attributes(int elems)
Attributes(ReadOnlyAttributes attrs)
Attributes(Vector v)
Constructs an empty Attribute collection.
public Attributes();
Constructs an empty Attribute collection of a specified size. If you add more Attribute objects to it than the initially specified size, the collection grows automatically.
public Attributes(int elems);
elems | The number of Attributes to initially reserve space for in the collection. |
Constructs a collection of Attribute objects from an existing collection of read-only Attribute objects.
public Attributes(ReadOnlyAttributes attrs);
attrs | A read-only Attribute collection used to create the new Attributes object. |
Constructs an empty collection of Attribute objects using the specified Vector.
public Attributes(Vector v);
v | The vector to use for the Attribute collection. |