Interface IFloatArrayList

All Known Implementing Classes:
AdaptiveFloatArrayList, CompactFloatArrayList, TFloatArrayList

public interface IFloatArrayList
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(float val)
    Adds val to the end of the list, growing as needed.
    int
    binarySearch(float value)
    Performs a binary search for value in the entire list.
    void
     
     
    float
    get(int offset)
    Returns the value at the specified offset.
    void
    insert(int offset, float value)
    Inserts value into the list at offset.
    boolean
    Tests whether this list contains any values.
    void
    set(int offset, float val)
    Sets the value at the specified offset.
    int
    Returns the number of values in the list.
    float[]
     
    void
     
  • Method Details

    • size

      int size()
      Returns the number of values in the list.
      Returns:
      the number of values in the list.
    • add

      void add(float val)
      Adds val to the end of the list, growing as needed.
      Parameters:
      val - an float value
    • insert

      void insert(int offset, float value)
      Inserts value into the list at offset. All values including and to the right of offset are shifted to the right.
      Parameters:
      offset - an int value
      value - an float value
    • get

      float get(int offset)
      Returns the value at the specified offset.
      Parameters:
      offset - an int value
      Returns:
      an float value
    • set

      void set(int offset, float val)
      Sets the value at the specified offset.
      Parameters:
      offset - an int value
      val - an float value
    • binarySearch

      int binarySearch(float value)
      Performs a binary search for value in the entire list. Note that you must @{link #sort sort} the list before doing a search.
      Parameters:
      value - the value to search for
      Returns:
      the absolute offset in the list of the value, or its negative insertion point into the sorted list.
    • isEmpty

      boolean isEmpty()
      Tests whether this list contains any values.
      Returns:
      true if the list is empty.
    • copy

    • toNativeArray

      float[] toNativeArray()
    • clear

      void clear()
    • trimToSize

      void trimToSize()