public class ByteArrayList extends java.lang.Object implements java.util.RandomAccess, java.lang.Cloneable, java.io.Serializable, ByteIterable
Modifier and Type | Field and Description |
---|---|
static float |
DEFAULT_GROW_FACTOR |
static int |
DEFAULT_INITIAL_CAPACITY |
Constructor and Description |
---|
ByteArrayList() |
ByteArrayList(byte[] a) |
ByteArrayList(byte[] a,
int offset,
int length) |
ByteArrayList(int capacity) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(byte k) |
void |
add(int index,
byte k) |
boolean |
addAll(java.util.Collection c) |
boolean |
addAll(int index,
ByteArrayList c) |
boolean |
addAll(int index,
java.util.Collection c) |
void |
addElements(int index,
byte[] a,
int offset,
int length) |
int |
capacity() |
void |
clear() |
ByteArrayList |
clone() |
int |
compareTo(ByteArrayList l) |
boolean |
contains(byte k) |
byte[] |
elements() |
static byte[] |
ensureCapacity(byte[] array,
int length,
int preserve) |
void |
ensureCapacity(int capacity) |
boolean |
equals(ByteArrayList l) |
byte |
getByte(int index) |
void |
getElements(int from,
byte[] a,
int offset,
int length) |
float |
getGrowFactor() |
static byte[] |
grow(byte[] array,
int length,
int preserve,
float growFactor) |
int |
indexOf(byte k) |
boolean |
isEmpty() |
ByteIterator |
iterator() |
int |
lastIndexOf(byte k) |
boolean |
rem(byte k) |
boolean |
removeAll(ByteArrayList c) |
boolean |
removeAll(java.util.Collection c) |
byte |
removeByIndex(int index) |
void |
removeElements(int from,
int to) |
byte |
set(int index,
byte k) |
void |
setGrowFactor(float growFactor) |
int |
size() |
void |
size(int size) |
byte[] |
toArray(byte[] a) |
void |
trim() |
void |
trim(int n) |
void |
trimToSize() |
static ByteArrayList |
wrap(byte[] a) |
static ByteArrayList |
wrap(byte[] a,
int length) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, forEach
public static final int DEFAULT_INITIAL_CAPACITY
public static final float DEFAULT_GROW_FACTOR
public ByteArrayList(int capacity)
public ByteArrayList()
public ByteArrayList(byte[] a)
public ByteArrayList(byte[] a, int offset, int length)
public byte[] elements()
public static ByteArrayList wrap(byte[] a, int length)
public static ByteArrayList wrap(byte[] a)
public void ensureCapacity(int capacity)
public float getGrowFactor()
public void setGrowFactor(float growFactor)
public void add(int index, byte k)
public boolean add(byte k)
public byte getByte(int index)
public int indexOf(byte k)
public int lastIndexOf(byte k)
public byte removeByIndex(int index)
public boolean rem(byte k)
public byte set(int index, byte 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, byte[] a, int offset, int length)
public void removeElements(int from, int to)
public void addElements(int index, byte[] a, int offset, int length)
public byte[] toArray(byte[] a)
public boolean addAll(int index, ByteArrayList c)
public boolean addAll(int index, java.util.Collection c)
public boolean addAll(java.util.Collection c)
public boolean removeAll(ByteArrayList c)
public boolean removeAll(java.util.Collection c)
public ByteArrayList clone()
clone
in class java.lang.Object
public boolean equals(ByteArrayList l)
public int compareTo(ByteArrayList l)
public boolean contains(byte k)
public ByteIterator iterator()
iterator
in interface ByteIterable
iterator
in interface java.lang.Iterable
public static byte[] ensureCapacity(byte[] array, int length, int preserve)
public static byte[] grow(byte[] array, int length, int preserve, float growFactor)
public void trimToSize()
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.