T
- Parameterized type of array elementspublic abstract class JSTypedArray<T> extends JSBaseArray<T>
JSObject.jsexport, JSObject.Property<T>
JSPropertyAttributeDontDelete, JSPropertyAttributeDontEnum, JSPropertyAttributeNone, JSPropertyAttributeReadOnly
Modifier and Type | Method and Description |
---|---|
boolean |
add(T val)
Always throws UnsupportedOperationException.
|
JSArrayBuffer |
buffer()
JavaScript: TypedArray.prototype.buffer, see:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/buffer
|
int |
byteLength()
JavaScript: TypedArray.prototype.buffer, see:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/byteLength
|
int |
byteOffset()
JavaScript: TypedArray.prototype.buffer, see:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/byteOffset
|
static JSTypedArray |
from(JSObject obj)
JavaScript: TypedArray.from(), see:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/from
|
add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, toArray, toArray, toArray
apply, call, call, newInstance
__nullFunc, deleteProperty, getThis, hasProperty, isConstructor, isFunction, property, property, property, propertyAtIndex, propertyAtIndex, propertyNames, prototype, prototype
getContext, isArray, isBoolean, isDate, isEqual, isFloat32Array, isFloat64Array, isInstanceOfConstructor, isInt16Array, isInt32Array, isInt8Array, isNull, isNumber, isObject, isStrictEqual, isString, isTypedArray, isUint16Array, isUint32Array, isUint8Array, isUint8ClampedArray, isUndefined, toBoolean, toFunction, toJSArray, toJSON, toNumber, toObject, toString, valueHash
public static JSTypedArray from(JSObject obj)
obj
- source objectpublic JSArrayBuffer buffer()
public int byteLength()
public int byteOffset()
public boolean add(T val) throws JSException
add
in interface java.util.Collection<T>
add
in interface java.util.List<T>
add
in class JSBaseArray<T>
val
- The value to add to the arrayjava.lang.UnsupportedOperationException
- alwaysJSException
List.add(Object)