Package ucar.ma2

Class ArrayRagged

java.lang.Object
ucar.ma2.Array
ucar.ma2.ArrayRagged

public class ArrayRagged extends Array
DO NOT USE
Since:
Nov 15, 2008
  • Method Details

    • getElementType

      public Class getElementType()
      Description copied from class: Array
      Get the element class type of this Array
      Specified by:
      getElementType in class Array
      Returns:
      the class of the element
    • getStorage

      public Object getStorage()
      Description copied from class: Array
      Get underlying primitive array storage. Exposed for efficiency, use at your own risk.
      Specified by:
      getStorage in class Array
      Returns:
      underlying primitive array storage
    • copy

      public Array copy()
      DO NOT USE, throws UnsupportedOperationException
      Overrides:
      copy in class Array
      Returns:
      the new Array
    • getDouble

      public double getDouble(Index i)
      DO NOT USE, throw ForbiddenConversionException
      Specified by:
      getDouble in class Array
      Parameters:
      i - Index with current element set
      Returns:
      value at index cast to double if necessary.
    • setDouble

      public void setDouble(Index i, double value)
      DO NOT USE, throw ForbiddenConversionException
      Specified by:
      setDouble in class Array
      Parameters:
      i - Index with current element set
      value - the new value; cast to underlying data type if necessary.
    • getFloat

      public float getFloat(Index i)
      DO NOT USE, throw ForbiddenConversionException
      Specified by:
      getFloat in class Array
      Parameters:
      i - Index with current element set
      Returns:
      value at index cast to float if necessary.
    • setFloat

      public void setFloat(Index i, float value)
      DO NOT USE, throw ForbiddenConversionException
      Specified by:
      setFloat in class Array
      Parameters:
      i - Index with current element set
      value - the new value; cast to underlying data type if necessary.
    • getLong

      public long getLong(Index i)
      DO NOT USE, throw ForbiddenConversionException
      Specified by:
      getLong in class Array
      Parameters:
      i - Index with current element set
      Returns:
      value at index cast to long if necessary.
    • setLong

      public void setLong(Index i, long value)
      DO NOT USE, throw ForbiddenConversionException
      Specified by:
      setLong in class Array
      Parameters:
      i - Index with current element set
      value - the new value; cast to underlying data type if necessary.
    • getInt

      public int getInt(Index i)
      DO NOT USE, throw ForbiddenConversionException
      Specified by:
      getInt in class Array
      Parameters:
      i - Index with current element set
      Returns:
      value at index cast to int if necessary.
    • setInt

      public void setInt(Index i, int value)
      DO NOT USE, throw ForbiddenConversionException
      Specified by:
      setInt in class Array
      Parameters:
      i - Index with current element set
      value - the new value; cast to underlying data type if necessary.
    • getShort

      public short getShort(Index i)
      DO NOT USE, throw ForbiddenConversionException
      Specified by:
      getShort in class Array
      Parameters:
      i - Index with current element set
      Returns:
      value at index cast to short if necessary.
    • setShort

      public void setShort(Index i, short value)
      DO NOT USE, throw ForbiddenConversionException
      Specified by:
      setShort in class Array
      Parameters:
      i - Index with current element set
      value - the new value; cast to underlying data type if necessary.
    • getByte

      public byte getByte(Index i)
      DO NOT USE, throw ForbiddenConversionException
      Specified by:
      getByte in class Array
      Parameters:
      i - Index with current element set
      Returns:
      value at index cast to float if necessary.
    • setByte

      public void setByte(Index i, byte value)
      DO NOT USE, throw ForbiddenConversionException
      Specified by:
      setByte in class Array
      Parameters:
      i - Index with current element set
      value - the new value; cast to underlying data type if necessary.
    • getBoolean

      public boolean getBoolean(Index i)
      DO NOT USE, throw ForbiddenConversionException
      Specified by:
      getBoolean in class Array
      Parameters:
      i - Index with current element set
      Returns:
      value at index cast to boolean if necessary.
    • setBoolean

      public void setBoolean(Index i, boolean value)
      DO NOT USE, throw ForbiddenConversionException
      Specified by:
      setBoolean in class Array
      Parameters:
      i - Index with current element set
      value - the new value; cast to underlying data type if necessary.
    • getObject

      public Object getObject(Index ima)
      Description copied from class: Array
      Get the array element at index as an Object. The returned value is wrapped in an object, eg Double for double
      Specified by:
      getObject in class Array
      Parameters:
      ima - element Index
      Returns:
      Object value at index
    • setObject

      public void setObject(Index ima, Object value)
      Description copied from class: Array
      Set the array element at index to the specified value. the value must be passed wrapped in the appropriate Object (eg Double for double)
      Specified by:
      setObject in class Array
      Parameters:
      ima - Index with current element set
      value - the new value.
    • getChar

      public char getChar(Index i)
      DO NOT USE, throw ForbiddenConversionException
      Specified by:
      getChar in class Array
      Parameters:
      i - Index with current element set
      Returns:
      value at index cast to char if necessary.
    • setChar

      public void setChar(Index i, char value)
      DO NOT USE, throw ForbiddenConversionException
      Specified by:
      setChar in class Array
      Parameters:
      i - Index with current element set
      value - the new value; cast to underlying data type if necessary.
    • getDouble

      public double getDouble(int index)
      Specified by:
      getDouble in class Array
    • setDouble

      public void setDouble(int index, double value)
      Specified by:
      setDouble in class Array
    • getFloat

      public float getFloat(int index)
      Specified by:
      getFloat in class Array
    • setFloat

      public void setFloat(int index, float value)
      Specified by:
      setFloat in class Array
    • getLong

      public long getLong(int index)
      Specified by:
      getLong in class Array
    • setLong

      public void setLong(int index, long value)
      Specified by:
      setLong in class Array
    • getInt

      public int getInt(int index)
      Specified by:
      getInt in class Array
    • setInt

      public void setInt(int index, int value)
      Specified by:
      setInt in class Array
    • getShort

      public short getShort(int index)
      Specified by:
      getShort in class Array
    • setShort

      public void setShort(int index, short value)
      Specified by:
      setShort in class Array
    • getByte

      public byte getByte(int index)
      Specified by:
      getByte in class Array
    • setByte

      public void setByte(int index, byte value)
      Specified by:
      setByte in class Array
    • getChar

      public char getChar(int index)
      Specified by:
      getChar in class Array
    • setChar

      public void setChar(int index, char value)
      Specified by:
      setChar in class Array
    • getBoolean

      public boolean getBoolean(int index)
      Specified by:
      getBoolean in class Array
    • setBoolean

      public void setBoolean(int index, boolean value)
      Specified by:
      setBoolean in class Array
    • getObject

      public Object getObject(int elem)
      Specified by:
      getObject in class Array
    • setObject

      public void setObject(int elem, Object value)
      Specified by:
      setObject in class Array