Class ShortList
java.lang.Object
zombie.core.Styles.ShortList
- All Implemented Interfaces:
Serializable
Quickly hacked together expandable list of shorts
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionshortadd(short f) add method comment.voidaddAll(short[] shorts) voidadd method comment.short[]array()intcapacity()voidclear()clear method comment.voidensureCapacity(int size) Ensure the list is at least 'size' elements big.shortget(int index) get method comment.booleanisEmpty()isEmpty method comment.shortremove(int idx) Remove an element and return it.intsize()size method comment.short[]toArray(short[] shorts) voidPack list to its minimum size.
-
Constructor Details
-
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 Details
-
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[] shorts) -
addAll
add method comment. -
array
public short[] array() -
capacity
public int capacity() -
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[] shorts) -
trimToSize
public void trimToSize()Pack list to its minimum size.
-