Class FloatArrayAdapter

  • All Implemented Interfaces:
    ArrayAdapter<java.lang.Float,​float[]>, NumberArrayAdapter<java.lang.Float,​float[]>

    public class FloatArrayAdapter
    extends java.lang.Object
    implements NumberArrayAdapter<java.lang.Float,​float[]>
    Use a float[] in the ArrayAdapter API.

    This class is generated from a code template.

    Since:
    0.5.0
    Author:
    Erich Schubert
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected FloatArrayAdapter()
      Private constructor - use the static instance in STATIC!
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.lang.Float get​(float[] array, int off)
      Deprecated.
      byte getByte​(float[] array, int off)
      Get the off'th item from the array as byte.
      double getDouble​(float[] array, int off)
      Get the off'th item from the array as double.
      float getFloat​(float[] array, int off)
      Get the off'th item from the array as float.
      int getInteger​(float[] array, int off)
      Get the off'th item from the array as integer.
      long getLong​(float[] array, int off)
      Get the off'th item from the array as long.
      short getShort​(float[] array, int off)
      Get the off'th item from the array as short.
      int size​(float[] array)
      Get the size of the array.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FloatArrayAdapter

        protected FloatArrayAdapter()
        Private constructor - use the static instance in STATIC!
    • Method Detail

      • size

        public int size​(float[] array)
        Description copied from interface: ArrayAdapter
        Get the size of the array.
        Specified by:
        size in interface ArrayAdapter<java.lang.Float,​float[]>
        Specified by:
        size in interface NumberArrayAdapter<java.lang.Float,​float[]>
        Parameters:
        array - Array-like thing
        Returns:
        Size
      • get

        @Deprecated
        public java.lang.Float get​(float[] array,
                                   int off)
                            throws java.lang.IndexOutOfBoundsException
        Deprecated.
        Description copied from interface: ArrayAdapter
        Get the off'th item from the array.
        Specified by:
        get in interface ArrayAdapter<java.lang.Float,​float[]>
        Specified by:
        get in interface NumberArrayAdapter<java.lang.Float,​float[]>
        Parameters:
        array - Array to get from
        off - Offset
        Returns:
        Item at offset off
        Throws:
        java.lang.IndexOutOfBoundsException - for an invalid index.
      • getDouble

        public double getDouble​(float[] array,
                                int off)
                         throws java.lang.IndexOutOfBoundsException
        Description copied from interface: NumberArrayAdapter
        Get the off'th item from the array as double.
        Specified by:
        getDouble in interface NumberArrayAdapter<java.lang.Float,​float[]>
        Parameters:
        array - Array to get from
        off - Offset
        Returns:
        Item at offset off
        Throws:
        java.lang.IndexOutOfBoundsException - for an invalid index.
      • getFloat

        public float getFloat​(float[] array,
                              int off)
                       throws java.lang.IndexOutOfBoundsException
        Description copied from interface: NumberArrayAdapter
        Get the off'th item from the array as float.
        Specified by:
        getFloat in interface NumberArrayAdapter<java.lang.Float,​float[]>
        Parameters:
        array - Array to get from
        off - Offset
        Returns:
        Item at offset off
        Throws:
        java.lang.IndexOutOfBoundsException - for an invalid index.
      • getInteger

        public int getInteger​(float[] array,
                              int off)
                       throws java.lang.IndexOutOfBoundsException
        Description copied from interface: NumberArrayAdapter
        Get the off'th item from the array as integer.
        Specified by:
        getInteger in interface NumberArrayAdapter<java.lang.Float,​float[]>
        Parameters:
        array - Array to get from
        off - Offset
        Returns:
        Item at offset off
        Throws:
        java.lang.IndexOutOfBoundsException - for an invalid index.
      • getShort

        public short getShort​(float[] array,
                              int off)
                       throws java.lang.IndexOutOfBoundsException
        Description copied from interface: NumberArrayAdapter
        Get the off'th item from the array as short.
        Specified by:
        getShort in interface NumberArrayAdapter<java.lang.Float,​float[]>
        Parameters:
        array - Array to get from
        off - Offset
        Returns:
        Item at offset off
        Throws:
        java.lang.IndexOutOfBoundsException - for an invalid index.
      • getLong

        public long getLong​(float[] array,
                            int off)
                     throws java.lang.IndexOutOfBoundsException
        Description copied from interface: NumberArrayAdapter
        Get the off'th item from the array as long.
        Specified by:
        getLong in interface NumberArrayAdapter<java.lang.Float,​float[]>
        Parameters:
        array - Array to get from
        off - Offset
        Returns:
        Item at offset off
        Throws:
        java.lang.IndexOutOfBoundsException - for an invalid index.
      • getByte

        public byte getByte​(float[] array,
                            int off)
                     throws java.lang.IndexOutOfBoundsException
        Description copied from interface: NumberArrayAdapter
        Get the off'th item from the array as byte.
        Specified by:
        getByte in interface NumberArrayAdapter<java.lang.Float,​float[]>
        Parameters:
        array - Array to get from
        off - Offset
        Returns:
        Item at offset off
        Throws:
        java.lang.IndexOutOfBoundsException - for an invalid index.