Class NativeFloat64Array
java.lang.Object
org.mozilla.javascript.ScriptableObject
org.mozilla.javascript.typedarrays.NativeArrayBufferView
org.mozilla.javascript.typedarrays.NativeTypedArrayView<Double>
org.mozilla.javascript.typedarrays.NativeFloat64Array
- All Implemented Interfaces:
Serializable,Iterable<Double>,Collection<Double>,List<Double>,RandomAccess,SequencedCollection<Double>,ConstProperties,DebuggableObject,ExternalArrayData,Scriptable,SymbolScriptable
An array view that stores 64-bit quantities and implements the JavaScript "Float64Array"
interface. It also implements List<Double> for direct manipulation in Java.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.mozilla.javascript.typedarrays.NativeTypedArrayView
NativeTypedArrayView.RealThis, NativeTypedArrayView.TypedArrayConstructableNested classes/interfaces inherited from class org.mozilla.javascript.ScriptableObject
ScriptableObject.KeyComparator -
Field Summary
Fields inherited from class org.mozilla.javascript.typedarrays.NativeTypedArrayView
lengthFields inherited from class org.mozilla.javascript.typedarrays.NativeArrayBufferView
arrayBuffer, byteLength, offsetFields inherited from class org.mozilla.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONSTFields inherited from interface org.mozilla.javascript.Scriptable
NOT_FOUND -
Constructor Summary
ConstructorsConstructorDescriptionNativeFloat64Array(int len) NativeFloat64Array(NativeArrayBuffer ab, int off, int len) -
Method Summary
Methods inherited from class org.mozilla.javascript.typedarrays.NativeTypedArrayView
add, add, addAll, addAll, checkIndex, clear, contains, containsAll, delete, delete, equals, get, get, getArrayElement, getArrayLength, getIds, has, has, hashCode, indexOf, isEmpty, iterator, js_constructor, lastIndexOf, listIterator, listIterator, put, put, remove, remove, removeAll, retainAll, setArrayElement, size, subList, toArray, toArrayMethods inherited from class org.mozilla.javascript.typedarrays.NativeArrayBufferView
get, getBuffer, getByteLength, getByteOffset, isArg, useLittleEndianMethods inherited from class org.mozilla.javascript.ScriptableObject
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, equivalentValues, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, hasInstance, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, putConst, putConstProperty, putProperty, putProperty, putProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototypeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addFirst, addLast, getFirst, getLast, removeFirst, removeLast, replaceAll, reversed, sort, spliterator
-
Constructor Details
-
NativeFloat64Array
public NativeFloat64Array() -
NativeFloat64Array
-
NativeFloat64Array
public NativeFloat64Array(int len)
-
-
Method Details
-
getClassName
Description copied from class:ScriptableObjectReturn the name of the class.This is typically the same name as the constructor. Classes extending ScriptableObject must implement this abstract method.
- Specified by:
getClassNamein interfaceScriptable- Specified by:
getClassNamein classScriptableObject
-
init
-
getBytesPerElement
public int getBytesPerElement()Description copied from class:NativeTypedArrayViewReturn the number of bytes represented by each element in the array. This can be useful when wishing to manipulate the byte array directly from Java.- Specified by:
getBytesPerElementin classNativeTypedArrayView<Double>
-
js_get
- Specified by:
js_getin classNativeTypedArrayView<Double>
-
js_set
- Specified by:
js_setin classNativeTypedArrayView<Double>
-
get
-
set
-