|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Vector
com.sybase.collections.ByteList
public class ByteList
A list of Byte
elements.
Field Summary |
---|
Fields inherited from class java.util.Vector |
---|
capacityIncrement, elementCount, elementData |
Constructor Summary | |
---|---|
ByteList(int capacity)
Initializes a new instance of the ByteList class that is empty and has the specified initial capacity. |
Method Summary | |
---|---|
void |
add(byte item)
Constructs a Byte element based on the argument and adds it to end of this list. |
int |
add(java.lang.Byte x)
Adds the specified Byte to the end of this list, increasing its size by one. |
ByteList |
addThis(java.lang.Byte item)
Sybase internal use only. |
static ByteList |
fromJSON(java.lang.Object array)
Sybase internal use only. |
java.lang.Byte |
getByIndex(int index)
Gets the Byte element at the specified index. |
void |
insert(int index,
java.lang.Byte x)
Inserts the specified Byte in this list at the specified index. |
java.lang.Byte |
item(int index)
Returns the element at the specified index. |
void |
remove(java.lang.Byte x)
Removes the first occurrence of the argument from this list. |
ByteList |
slice(int skip,
int take)
Returns a new list by copying the specified number of elements from the specified index |
static JsonArray |
toJSON(ByteList _list)
Sybase internal use only. |
Methods inherited from class java.util.Vector |
---|
addElement, capacity, contains, copyInto, elementAt, elements, ensureCapacity, firstElement, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, removeAllElements, removeElement, removeElementAt, setElementAt, setSize, size, toString, trimToSize |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ByteList(int capacity)
capacity
- The initial number of elements that the ByteList can contain.Method Detail |
---|
public java.lang.Byte getByIndex(int index)
Byte
element at the specified index.
index
- The zero-based index of the Byte
to find.
Byte
.public int add(java.lang.Byte x)
Byte
to the end of this list, increasing its size by one.
x
- The Byte
to add
Byte
public void insert(int index, java.lang.Byte x)
Byte
in this list at the specified index.
index
- Where to insertx
- The Byte
to insertpublic void remove(java.lang.Byte x)
x
- The Byte
to remove.public void add(byte item)
Byte
element based on the argument and adds it to end of this list.
item
- The element to addpublic ByteList addThis(java.lang.Byte item)
public java.lang.Byte item(int index)
index
- Where to find the element.
public ByteList slice(int skip, int take)
skip
- The index to copy fromtake
- The number of elements to copy
public static ByteList fromJSON(java.lang.Object array)
public static JsonArray toJSON(ByteList _list)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |