public class Vector extends VectorBase
Vector
object.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TYPE_CHARACTER |
static java.lang.String |
TYPE_NUMERIC |
Constructor and Description |
---|
Vector()
Constructs a
Vector object. |
Vector(boolean... items)
Constructs a logical vector.
|
Vector(DataType type,
Item... items)
A constructor that accepts variable number of parameters.
|
Vector(double[] items)
Constructs an numeric vector
|
Vector(int... items)
Constructs an integer vector.
|
Vector(java.util.List<Attr> attrs,
java.util.List<Item> items,
java.lang.String name,
java.lang.String type)
Constructs a vector object, initializing all the attributes.
|
Vector(java.lang.Object items)
A constructor that accepts a generic array.
|
Vector(java.lang.String... items)
Constructs an character vector
|
Vector(java.lang.String item)
Constructs an character vector with a single element.
|
Vector(java.lang.String type,
Item... items)
A constructor that accepts variable number of parameters.
|
Vector(java.lang.String type,
java.util.List<Item> items) |
getAsBooleanArray, getAsBooleanArray, getAsBooleanObjectArray, getAsDoubleArray, getAsDoubleArray, getAsDoubleObjectArray, getAsIntegerArray, getAsIntegerArray, getAsIntegerObjectArray, getAsStringArray, getAttrs, getItems, getLength, getName, getType, setAttrs, setItems, setLength, setName, setType
public static final java.lang.String TYPE_NUMERIC
public static final java.lang.String TYPE_CHARACTER
public Vector()
Vector
object.
public Vector(java.lang.String type, java.util.List<Item> items)
public Vector(java.util.List<Attr> attrs, java.util.List<Item> items, java.lang.String name, java.lang.String type)
attrs
- A list of Attributes
to initialize.items
- A list of Items
to initialize.name
- The name of the vector.type
- The type of vector.Attr
public Vector(java.lang.String type, Item... items)
type
- A string name of the type.items
- An array of items of the specified type.public Vector(DataType type, Item... items)
type
- A DataType
enumitems
- An array of items corresponding to the type.DataType
public Vector(java.lang.Object items)
items
- An array of items.public Vector(int... items)
items
- The integers.public Vector(double[] items)
items
- An array of doubles.public Vector(java.lang.String... items)
items
- An array of characters.public Vector(java.lang.String item)
item
- The item.public Vector(boolean... items)
items
- An array of logical items.