public class Vector extends java.util.ArrayList<Obj> implements Obj, java.lang.Iterable<Obj>, NativeObject<java.util.List<java.lang.Object>>
| Constructor and Description |
|---|
Vector()
Creates an empty vector.
|
| Modifier and Type | Method and Description |
|---|---|
Obj |
divide(Obj other)
Division operator in AJE.
|
Obj |
get(int index) |
Obj |
get(Obj key)
Get operator in AJE.
|
Obj |
getAttr(java.lang.String name)
Attribute operator in AJE.
|
Type |
getType() |
Bool |
isEqualTo(Obj other)
Equality operator in AJE.
|
Bool |
isEqualTo(Vector other) |
Obj |
minus(Obj other)
Subtraction operator in AJE.
|
Vector |
negative()
Negative numeric unary operator in AJE.
|
static Vector |
of(Obj... items)
Creates a vector of items.
|
static Vector |
ofList(java.util.Collection<Obj> collection)
Creates a vector of items from a native
collection. |
Obj |
plus(Obj other)
Addition operator in AJE.
|
Obj |
pow(Obj other)
Exponentiation operator in AJE.
|
Obj |
set(int index,
Obj element) |
Obj |
set(Obj key,
Obj value) |
Obj |
slice(Obj startObj,
Obj endObj,
Obj stepObj) |
Obj |
times(Obj other)
Multiplication operator in AJE.
|
java.util.List<java.lang.Object> |
toNative()
Returns an unmodifiable representation of the vector.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, size, sort, spliterator, subList, toArray, toArray, trimToSizefinalize, getClass, notify, notifyAll, wait, wait, waitpublic static final Type TYPE
public static Vector ofList(java.util.Collection<Obj> collection)
collection.collection - Native collection of AJE objects.Vector.public java.util.List<java.lang.Object> toNative()
null if unable to.toNative in interface NativeObject<java.util.List<java.lang.Object>>toNative in interface Objpublic Type getType()
public Obj plus(Obj other)
Obj+.
Undefined.VALUE if not implemented.public Obj minus(Obj other)
Obj-.
Undefined.VALUE if not implemented.public Obj times(Obj other)
Obj*.
Undefined.VALUE if not implemented.public Obj divide(Obj other)
Obj/.
Undefined.VALUE if not implemented.public Obj pow(Obj other)
Obj^.
Undefined.VALUE if not implemented.public Vector negative()
Obj-.public Bool isEqualTo(Obj other)
Obj==.
Bool representation of Object.equals(Object)
if not implemented.public Obj get(Obj key)
Obja[b].
Undefined.VALUE if not implemented.public Obj get(int index)
public Obj getAttr(java.lang.String name)
Obja.b.
Undefined.VALUE if not implemented.