Microsoft SDK for Java

Attributes Class Constructors

The Attributes class contains the following constructors:

Attributes()
Attributes(int elems)
Attributes(ReadOnlyAttributes attrs)
Attributes(Vector v)

Attributes()

Constructs an empty Attribute collection.

Syntax

public Attributes();

Attributes(int elems)

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.

Syntax

public Attributes(int elems);

Parameters

elems The number of Attributes to initially reserve space for in the collection.

Attributes(ReadOnlyAttributes attrs)

Constructs a collection of Attribute objects from an existing collection of read-only Attribute objects.

Syntax

public Attributes(ReadOnlyAttributes attrs);

Parameters

attrs A read-only Attribute collection used to create the new Attributes object.

Attributes(Vector v)

Constructs an empty collection of Attribute objects using the specified Vector.

Syntax

public Attributes(Vector v);

Parameters

v The vector to use for the Attribute collection.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.