Class FloatList

java.lang.Object
zombie.core.Styles.FloatList
All Implemented Interfaces:
Serializable

public class FloatList extends Object implements Serializable
Quickly hacked together expandable list of floats
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    FloatList constructor comment.
    FloatList(boolean fastExpand, int size)
    FloatList constructor comment.
    FloatList(int size)
    FloatList constructor comment.
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    add(float f)
    add method comment.
    void
    addAll(float[] f)
    add method comment.
    void
    add method comment.
    float[]
    toArray method comment.
    int
    Insert the method's description here.
    void
    clear method comment.
    void
    ensureCapacity(int size)
    Ensure the list is at least 'size' elements big.
    float
    get(int index)
    get method comment.
    boolean
    isEmpty method comment.
    float
    remove(int idx)
    Remove an element and return it.
    int
    size method comment.
    void
    toArray(Object[] dest)
    Stash everything in an array.
    void
    Pack list to its minimum size.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FloatList

      public FloatList()
      FloatList constructor comment.
    • FloatList

      public FloatList(int size)
      FloatList constructor comment.
    • FloatList

      public FloatList(boolean fastExpand, int size)
      FloatList constructor comment.
  • Method Details

    • add

      public float add(float f)
      add method comment.
    • remove

      public float remove(int idx)
      Remove an element and return it.
      Parameters:
      idx - The index of the element to remove
      Returns:
      the removed value
    • addAll

      public void addAll(float[] f)
      add method comment.
    • addAll

      public void addAll(FloatList f)
      add method comment.
    • array

      public float[] array()
      toArray method comment.
    • capacity

      public int capacity()
      Insert the method's description here. Creation date: (11/03/2001 17:19:01)
    • clear

      public void clear()
      clear method comment.
    • ensureCapacity

      public void ensureCapacity(int size)
      Ensure the list is at least 'size' elements big.
    • get

      public float get(int index)
      get method comment.
    • isEmpty

      public boolean isEmpty()
      isEmpty method comment.
    • size

      public int size()
      size method comment.
    • toArray

      public void toArray(Object[] dest)
      Stash everything in an array.
    • trimToSize

      public void trimToSize()
      Pack list to its minimum size.