public class FastShortArrayList
extends java.lang.Object
implements java.lang.Cloneable, java.util.RandomAccess, java.io.Serializable
FastArrayList for the short primitive data type.| Modifier and Type | Field | Description |
|---|---|---|
static int |
DEFAULT_INITIAL_CAPACITY |
| Constructor | Description |
|---|---|
FastShortArrayList() |
|
FastShortArrayList(int initialCapacity) |
|
FastShortArrayList(short[] src) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(int index,
short element) |
|
boolean |
add(short value) |
|
boolean |
addAll(FastShortArrayList c) |
|
boolean |
addAll(int index,
FastShortArrayList c) |
|
boolean |
addAll(int index,
short[] a) |
|
boolean |
addAll(short[] a) |
|
void |
clear() |
|
FastShortArrayList |
clone() |
|
boolean |
contains(short v) |
|
void |
ensureCapacity(int min) |
|
boolean |
equals(java.lang.Object o) |
|
short |
get(int index) |
|
int |
hashCode() |
|
int |
indexOf(short v) |
|
boolean |
isEmpty() |
|
int |
lastIndexOf(short v) |
|
short |
remove(int index) |
|
boolean |
removeElement(short value) |
|
short |
set(int index,
short value) |
|
int |
size() |
|
short[] |
toArray() |
|
java.lang.String |
toString() |
|
void |
trimToSize() |
public static final int DEFAULT_INITIAL_CAPACITY
public FastShortArrayList()
public FastShortArrayList(int initialCapacity)
public FastShortArrayList(short[] src)
public void trimToSize()
public void ensureCapacity(int min)
public int size()
public boolean isEmpty()
public boolean contains(short v)
public int indexOf(short v)
public int lastIndexOf(short v)
public FastShortArrayList clone() throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic short[] toArray()
public short get(int index)
public short set(int index,
short value)
public boolean add(short value)
public void add(int index,
short element)
public short remove(int index)
public boolean removeElement(short value)
public void clear()
public boolean addAll(short[] a)
public boolean addAll(int index,
short[] a)
public boolean addAll(FastShortArrayList c)
public boolean addAll(int index,
FastShortArrayList c)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2005 - 2009 Javolution.