|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectzombie.core.Styles.ShortList
public class ShortList
Quickly hacked together expandable list of shorts
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 |
---|
public ShortList()
public ShortList(int size)
public ShortList(boolean fastExpand, int size)
Method Detail |
---|
public short add(short f)
public short remove(int idx)
idx
- The index of the element to remove
public void addAll(short[] f)
public void addAll(ShortList f)
public short[] array()
public int capacity()
public void clear()
public void ensureCapacity(int size)
public short get(int index)
public boolean isEmpty()
public int size()
public short[] toArray(short[] dest)
public void trimToSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |