public class BooleanArrayList
extends java.lang.Object
implements java.util.RandomAccess, java.lang.Cloneable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static float |
DEFAULT_GROW_FACTOR |
static int |
DEFAULT_INITIAL_CAPACITY |
Constructor and Description |
---|
BooleanArrayList() |
BooleanArrayList(boolean[] a) |
BooleanArrayList(boolean[] a,
int offset,
int length) |
BooleanArrayList(int capacity) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(boolean k) |
void |
add(int index,
boolean k) |
boolean |
addAll(java.util.Collection c) |
boolean |
addAll(int index,
BooleanArrayList c) |
boolean |
addAll(int index,
java.util.Collection c) |
void |
addElements(int index,
boolean[] a,
int offset,
int length) |
int |
capacity() |
void |
clear() |
BooleanArrayList |
clone() |
int |
compareTo(BooleanArrayList l) |
boolean |
contains(boolean k) |
boolean[] |
elements() |
static boolean[] |
ensureCapacity(boolean[] array,
int length,
int preserve) |
void |
ensureCapacity(int capacity) |
boolean |
equals(BooleanArrayList l) |
boolean |
getBoolean(int index) |
void |
getElements(int from,
boolean[] a,
int offset,
int length) |
float |
getGrowFactor() |
static boolean[] |
grow(boolean[] array,
int length,
int preserve,
float growFactor) |
int |
indexOf(boolean k) |
boolean |
isEmpty() |
BooleanIterator |
iterator() |
int |
lastIndexOf(boolean k) |
boolean |
rem(boolean k) |
boolean |
removeAll(BooleanArrayList c) |
boolean |
removeAll(java.util.Collection c) |
boolean |
removeBoolean(int index) |
void |
removeElements(int from,
int to) |
boolean |
set(int index,
boolean k) |
void |
setGrowFactor(float growFactor) |
int |
size() |
void |
size(int size) |
boolean[] |
toArray(boolean[] a) |
void |
trim() |
void |
trim(int n) |
void |
trimToSize() |
static BooleanArrayList |
wrap(boolean[] a) |
static BooleanArrayList |
wrap(boolean[] a,
int length) |
public static final int DEFAULT_INITIAL_CAPACITY
public static final float DEFAULT_GROW_FACTOR
public BooleanArrayList(int capacity)
public BooleanArrayList()
public BooleanArrayList(boolean[] a)
public BooleanArrayList(boolean[] a, int offset, int length)
public boolean[] elements()
public static BooleanArrayList wrap(boolean[] a, int length)
public static BooleanArrayList wrap(boolean[] a)
public void ensureCapacity(int capacity)
public float getGrowFactor()
public void setGrowFactor(float growFactor)
public void add(int index, boolean k)
public boolean add(boolean k)
public boolean getBoolean(int index)
public int indexOf(boolean k)
public int lastIndexOf(boolean k)
public boolean removeBoolean(int index)
public boolean rem(boolean k)
public boolean set(int index, boolean k)
public void clear()
public int size()
public int capacity()
public void size(int size)
public boolean isEmpty()
public void trim()
public void trim(int n)
public void getElements(int from, boolean[] a, int offset, int length)
public void removeElements(int from, int to)
public void addElements(int index, boolean[] a, int offset, int length)
public boolean[] toArray(boolean[] a)
public boolean addAll(int index, BooleanArrayList c)
public boolean addAll(int index, java.util.Collection c)
public boolean addAll(java.util.Collection c)
public boolean removeAll(BooleanArrayList c)
public boolean removeAll(java.util.Collection c)
public BooleanArrayList clone()
clone
in class java.lang.Object
public boolean equals(BooleanArrayList l)
public int compareTo(BooleanArrayList l)
public boolean contains(boolean k)
public BooleanIterator iterator()
public static boolean[] ensureCapacity(boolean[] array, int length, int preserve)
public static boolean[] grow(boolean[] array, int length, int preserve, float growFactor)
public void trimToSize()
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.