Class NativeArrayContainer<T extends Array>

  • Type Parameters:
    T - type of array
    Direct Known Subclasses:
    NativeArrayDoubleContainer

    public abstract class NativeArrayContainer<T extends Array>
    extends Object
    Base class for all classes which are wrapping a native java script array.
    Author:
    Andrea "Stock" Stocchero
    • Constructor Detail

      • NativeArrayContainer

        protected NativeArrayContainer​(T nativeArray)
        Creates the object with native array instance to be wrapped.
        Parameters:
        nativeArray - native array instance to be wrapped.
    • Method Detail

      • getNativeArray

        protected final T getNativeArray()
        Returns the native array instance.
        Returns:
        the native array instance.
      • toJSON

        public final String toJSON()
        Returns the string JSON representation of the array.
        Returns:
        the string JSON representation of the array.