public class FastBooleanArrayTable
extends java.lang.Object
implements java.lang.Cloneable, java.util.RandomAccess, java.io.Serializable
FastArrayTable for the boolean primitive data type.| Constructor | Description |
|---|---|
FastBooleanArrayTable() |
|
FastBooleanArrayTable(boolean[] src) |
|
FastBooleanArrayTable(int initialCapacity) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
add(boolean value) |
|
void |
add(int index,
boolean element) |
|
boolean |
addAll(boolean[] a) |
|
boolean |
addAll(FastBooleanArrayTable c) |
|
boolean |
addAll(int index,
boolean[] a) |
|
boolean |
addAll(int index,
FastBooleanArrayTable c) |
|
void |
clear() |
|
FastBooleanArrayTable |
clone() |
|
boolean |
contains(boolean v) |
|
boolean |
delete(boolean value) |
Returns
true if an element was deleted. |
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.
|
protected void |
removeRange(int from,
int to) |
|
boolean |
set(int index,
boolean value) |
|
int |
size() |
|
boolean[] |
toArray() |
|
java.lang.String |
toString() |
|
void |
trimToSize() |
public FastBooleanArrayTable()
public FastBooleanArrayTable(int initialCapacity)
public FastBooleanArrayTable(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 FastBooleanArrayTable 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 delete(boolean value)
true if an element was deleted.public void clear()
public boolean addAll(boolean[] a)
public boolean addAll(FastBooleanArrayTable c)
public boolean addAll(int index,
boolean[] a)
public boolean addAll(int index,
FastBooleanArrayTable c)
protected void removeRange(int from,
int to)
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.