zombie.core.Styles
Class ShortList

java.lang.Object
  extended by zombie.core.Styles.ShortList
All Implemented Interfaces:
java.io.Serializable

public class ShortList
extends java.lang.Object
implements java.io.Serializable

Quickly hacked together expandable list of shorts

See Also:
Serialized Form

Constructor Summary
ShortList()
          FloatList constructor comment.
ShortList(boolean fastExpand, int size)
          FloatList constructor comment.
ShortList(int size)
          FloatList constructor comment.
 
Method Summary
 short add(short f)
          add method comment.
 void addAll(short[] f)
          add method comment.
 void addAll(ShortList f)
          add method comment.
 short[] array()
          toArray method comment.
 int capacity()
           
 void clear()
          clear method comment.
 void ensureCapacity(int size)
          Ensure the list is at least 'size' elements big.
 short get(int index)
          get method comment.
 boolean isEmpty()
          isEmpty method comment.
 short remove(int idx)
          Remove an element and return it.
 int size()
          size method comment.
 short[] toArray(short[] dest)
          Stash everything in an array.
 void trimToSize()
          Pack list to its minimum size.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShortList

public ShortList()
FloatList constructor comment.


ShortList

public ShortList(int size)
FloatList constructor comment.


ShortList

public ShortList(boolean fastExpand,
                 int size)
FloatList constructor comment.

Method Detail

add

public short add(short f)
add method comment.


remove

public short 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(ShortList f)
add method comment.


array

public short[] 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 short 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.