public class FastBooleanArrayList
extends java.lang.Object
implements java.lang.Cloneable, java.util.RandomAccess, java.io.Serializable
FastArrayList for the boolean primitive data type.| Modifier and Type | Field | Description |
|---|---|---|
static int |
DEFAULT_INITIAL_CAPACITY |
| Constructor | Description |
|---|---|
FastBooleanArrayList() |
|
FastBooleanArrayList(boolean[] src) |
|
FastBooleanArrayList(int initialCapacity) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
add(boolean value) |
|
void |
add(int index,
boolean element) |
|
boolean |
addAll(boolean[] a) |
|
boolean |
addAll(FastBooleanArrayList c) |
|
boolean |
addAll(int index,
boolean[] a) |
|
boolean |
addAll(int index,
FastBooleanArrayList c) |
|
void |
clear() |
|
FastBooleanArrayList |
clone() |
|
boolean |
contains(boolean v) |
|
void |
ensureCapacity(int min) |
|
boolean |
equals(java.lang.Object o) |
|
boolean |
get(int index) |
|
int |
hashCode() |
Boolean.hashCode(): value ? 1231 : 1237
|
int |
indexOf(boolean v) |
|
boolean |
isEmpty() |
|
int |
lastIndexOf(boolean v) |
|
boolean |
remove(int index) |
Returns the removed value, not a success flag.
|
boolean |
removeElement(boolean value) |
Returns
true if an element was removed. |
boolean |
set(int index,
boolean value) |
|
int |
size() |
|
boolean[] |
toArray() |
|
java.lang.String |
toString() |
|
void |
trimToSize() |
public static final int DEFAULT_INITIAL_CAPACITY
public FastBooleanArrayList()
public FastBooleanArrayList(int initialCapacity)
public FastBooleanArrayList(boolean[] src)
public void trimToSize()
public void ensureCapacity(int min)
public int size()
public boolean isEmpty()
public boolean contains(boolean v)
public int indexOf(boolean v)
public int lastIndexOf(boolean v)
public FastBooleanArrayList clone() throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic boolean[] toArray()
public boolean get(int index)
public boolean set(int index,
boolean value)
public boolean add(boolean value)
public void add(int index,
boolean element)
public boolean remove(int index)
public boolean removeElement(boolean value)
true if an element was removed.public void clear()
public boolean addAll(boolean[] a)
public boolean addAll(int index,
boolean[] a)
public boolean addAll(FastBooleanArrayList c)
public boolean addAll(int index,
FastBooleanArrayList 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.