public class VBArray<T> extends Object
constructor, prototype
Modifier | Constructor and Description |
---|---|
protected |
VBArray() |
|
VBArray(Object safeArray) |
Modifier and Type | Method and Description |
---|---|
double |
dimensions()
Returns the number of dimensions (1-based).
|
T |
getItem(double dimension1Index,
double... dimensionNIndexes)
Takes an index for each dimension in the array, and returns the item at the corresponding location.
|
double |
lbound()
Returns the smallest available index for a given dimension.
|
double |
lbound(double dimension)
Returns the smallest available index for a given dimension.
|
T[] |
toArray()
Returns a Javascript array with all the elements in the VBArray.
|
double |
ubound()
Returns the largest available index for a given dimension.
|
double |
ubound(double dimension)
Returns the largest available index for a given dimension.
|
$applyStatic, $applyStatic, $delete, $delete, $get, $get, $set, $set, $super, assign, create, create, defineProperties, defineProperty, defineProperty, freeze, getOwnPropertyDescriptor, getOwnPropertyNames, getPrototypeOf, hasOwnProperty, hasOwnProperty, hasOwnProperty, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, propertyIsEnumerable, propertyIsEnumerable, seal, toJSString, toLocaleString, toString, valueOf
public VBArray(Object safeArray)
protected VBArray()
public double dimensions()
public T getItem(double dimension1Index, double... dimensionNIndexes)
public double lbound(double dimension)
dimension
- 1-based dimension (defaults to 1)public double ubound(double dimension)
dimension
- 1-based dimension (defaults to 1)public T[] toArray()
public double lbound()
dimension
- 1-based dimension (defaults to 1)public double ubound()
dimension
- 1-based dimension (defaults to 1)