Class NativeUint16Array

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Iterable<java.lang.Integer>, java.util.Collection<java.lang.Integer>, java.util.List<java.lang.Integer>, java.util.RandomAccess, ConstProperties, DebuggableObject, ExternalArrayData, IdFunctionCall, Scriptable

    public class NativeUint16Array
    extends NativeTypedArrayView<java.lang.Integer>
    An array view that stores 16-bit quantities and implements the JavaScript "Uint16Array" interface. It also implements List<Integer> for direct manipulation in Java.
    See Also:
    Serialized Form
    • Constructor Detail

      • NativeUint16Array

        public NativeUint16Array()
      • NativeUint16Array

        public NativeUint16Array​(NativeArrayBuffer ab,
                                 int off,
                                 int len)
      • NativeUint16Array

        public NativeUint16Array​(int len)
    • Method Detail

      • getClassName

        public java.lang.String getClassName()
        Description copied from class: ScriptableObject
        Return the name of the class. This is typically the same name as the constructor. Classes extending ScriptableObject must implement this abstract method.
        Specified by:
        getClassName in interface Scriptable
        Specified by:
        getClassName in class ScriptableObject
      • getBytesPerElement

        public int getBytesPerElement()
        Description copied from class: NativeTypedArrayView
        Return 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:
        getBytesPerElement in class NativeTypedArrayView<java.lang.Integer>
      • get

        public java.lang.Integer get​(int i)
      • set

        public java.lang.Integer set​(int i,
                                     java.lang.Integer aByte)