Class IntList

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

public class IntList extends Object implements Serializable
See Also:
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    int
    add(short f)
    add method comment.
    void
    addAll(short[] f)
    add method comment.
    void
    add method comment.
    int[]
    toArray method comment.
    int
     
    void
    clear method comment.
    void
    ensureCapacity(int size)
    Ensure the list is at least 'size' elements big.
    int
    get(int index)
    get method comment.
    boolean
    isEmpty method comment.
    int
    remove(int idx)
    Remove an element and return it.
    int
    size method comment.
    short[]
    toArray(short[] 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

    • IntList

      public IntList()
      FloatList constructor comment.
    • IntList

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

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

    • add

      public int add(short f)
      add method comment.
    • remove

      public int 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(short[] f)
      add method comment.
    • addAll

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

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

      public int capacity()
      Returns:
    • clear

      public void clear()
      clear method comment.
    • ensureCapacity

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

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

      public boolean isEmpty()
      isEmpty method comment.
    • size

      public int size()
      size method comment.
    • toArray

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

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