public class ByteArrayList
extends java.lang.Object
Constructor and Description |
---|
ByteArrayList(byte[] data)
Constructs a list containing the elements of the specified array.
|
Modifier and Type | Method and Description |
---|---|
void |
add(byte element)
Appends the specified element to the end of this list.
|
void |
add(int index,
byte element)
Inserts the specified element at the specified position in this list.
|
void |
ensureCapacity(int mincap)
Increases the capacity of this ArrayList instance, if necessary, to ensure that it can hold at least the number of elements specified by the minimum capacity argument.
|
byte |
get(int index)
Returns the element at the specified position in this list.
|
byte |
remove(int index)
Removes the element at the specified position in this list.
|
void |
remove(int fromIndex,
int toIndex)
Removes from this list all of the elements whose index is between fromIndex, inclusive and toIndex, exclusive.
|
byte |
set(int index,
byte element)
Replaces the element at the specified position in this list with the specified element.
|
int |
size()
Returns the number of elements in this list.
|
byte[] |
toArray()
Returns an array containing all of the elements in this list in the correct order.
|
public ByteArrayList(byte[] data)
public byte[] toArray()
public byte get(int index)
public int size()
public byte remove(int index)
index
- the index of the element to removepublic void remove(int fromIndex, int toIndex)
public byte set(int index, byte element)
index
- the index of the element to changeelement
- the value to be stored at the specified positionpublic void add(byte element)
public void add(int index, byte element)
index
- the index at which to insert the elementelement
- the value to insertpublic void ensureCapacity(int mincap)
Copyright © 2010-2014 Pacific Biosciences. All Rights Reserved.