|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.util.list.ElementList
org.basex.util.list.ByteList
public class ByteList
This is a simple container for byte values.
Field Summary | |
---|---|
protected byte[] |
list
Element container. |
Fields inherited from class org.basex.util.list.ElementList |
---|
factor, size |
Constructor Summary | |
---|---|
ByteList()
Default constructor. |
|
ByteList(int capacity)
Constructor, specifying an initial internal array size. |
Method Summary | |
---|---|
ByteList |
add(byte[] elements)
Adds elements to the container. |
ByteList |
add(byte[] elements,
int start,
int end)
Adds a part of the specified elements to the container. |
ByteList |
add(int element)
Adds an element to the array. |
byte |
get(int index)
Returns the element at the specified index position. |
byte[] |
toArray()
Returns an array with all elements. |
java.lang.String |
toString()
|
Methods inherited from class org.basex.util.list.ElementList |
---|
isEmpty, newSize, newSize, reset, size, size |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected byte[] list
Constructor Detail |
---|
public ByteList()
public ByteList(int capacity)
capacity
- initial array capacityMethod Detail |
---|
public ByteList add(int element)
element
- element to be added; will be cast to a byte
public ByteList add(byte[] elements)
elements
- elements to be added
public ByteList add(byte[] elements, int start, int end)
elements
- elements to be addedstart
- start positionend
- end position
public final byte get(int index)
index
- index of the element to return
public byte[] toArray()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |