FastVector (original) (raw)

Modifier and Type

Method and Description

void

[addElement](../../weka/core/FastVector.html#addElement-java.lang.Object-)(java.lang.Object element)

Adds an element to this vector.

void

[appendElements](../../weka/core/FastVector.html#appendElements-weka.core.FastVector-)([FastVector](../../weka/core/FastVector.html "class in weka.core") toAppend)

Appends all elements of the supplied vector to this vector.

int

[capacity](../../weka/core/FastVector.html#capacity--)()

Returns the capacity of the vector.

boolean

[contains](../../weka/core/FastVector.html#contains-java.lang.Object-)(java.lang.Object o)

added by akibriya

java.lang.Object

[copy](../../weka/core/FastVector.html#copy--)()

Produces a shallow copy of this vector.

java.lang.Object

[copyElements](../../weka/core/FastVector.html#copyElements--)()

Clones the vector and shallow copies all its elements.

java.lang.Object

[elementAt](../../weka/core/FastVector.html#elementAt-int-)(int index)

Returns the element at the given position.

java.util.Enumeration

[elements](../../weka/core/FastVector.html#elements--)()

Returns an enumeration of this vector.

java.util.Enumeration

[elements](../../weka/core/FastVector.html#elements-int-)(int index)

Returns an enumeration of this vector, skipping the element with the given index.

java.lang.Object

[firstElement](../../weka/core/FastVector.html#firstElement--)()

Returns the first element of the vector.

java.lang.String

[getRevision](../../weka/core/FastVector.html#getRevision--)()

Returns the revision string.

int

[indexOf](../../weka/core/FastVector.html#indexOf-java.lang.Object-)(java.lang.Object element)

Searches for the first occurence of the given argument, testing for equality using the equals method.

void

[insertElementAt](../../weka/core/FastVector.html#insertElementAt-java.lang.Object-int-)(java.lang.Object element, int index)

Inserts an element at the given position.

java.lang.Object

[lastElement](../../weka/core/FastVector.html#lastElement--)()

Returns the last element of the vector.

void

[removeAllElements](../../weka/core/FastVector.html#removeAllElements--)()

Removes all components from this vector and sets its size to zero.

void

[removeElementAt](../../weka/core/FastVector.html#removeElementAt-int-)(int index)

Deletes an element from this vector.

void

[setCapacity](../../weka/core/FastVector.html#setCapacity-int-)(int capacity)

Sets the vector's capacity to the given value.

void

[setElementAt](../../weka/core/FastVector.html#setElementAt-java.lang.Object-int-)(java.lang.Object element, int index)

Sets the element at the given index.

int

[size](../../weka/core/FastVector.html#size--)()

Returns the vector's current size.

void

[swap](../../weka/core/FastVector.html#swap-int-int-)(int first, int second)

Swaps two elements in the vector.

java.lang.Object[]

[toArray](../../weka/core/FastVector.html#toArray--)()

Returns all the elements of this vector as an array

void

[trimToSize](../../weka/core/FastVector.html#trimToSize--)()

Sets the vector's capacity to its size.