nashorn/src/jdk/nashorn/internal/objects/NativeInt32Array.java
changeset 16226 0e4f37e6cc40
parent 16151 97c1e756ae1e
child 17763 f30b7aa0e736
equal deleted inserted replaced
16225:81d58c2b9fcf 16226:0e4f37e6cc40
    34 
    34 
    35 /**
    35 /**
    36  * Int32 array for the TypedArray extension
    36  * Int32 array for the TypedArray extension
    37  */
    37  */
    38 @ScriptClass("Int32Array")
    38 @ScriptClass("Int32Array")
    39 public class NativeInt32Array extends ArrayBufferView {
    39 public final class NativeInt32Array extends ArrayBufferView {
    40     private static final int BYTES_PER_ELEMENT = 4;
    40     private static final int BYTES_PER_ELEMENT = 4;
    41     private static final Factory FACTORY = new Factory(BYTES_PER_ELEMENT) {
    41     private static final Factory FACTORY = new Factory(BYTES_PER_ELEMENT) {
    42         @Override
    42         @Override
    43         public ArrayBufferView construct(final NativeArrayBuffer buffer, final int byteOffset, final int length) {
    43         public ArrayBufferView construct(final NativeArrayBuffer buffer, final int byteOffset, final int length) {
    44             return new NativeInt32Array(buffer, byteOffset, length);
    44             return new NativeInt32Array(buffer, byteOffset, length);