com.sybase.collections
Class CharList

java.lang.Object
  extended by java.util.Vector
      extended by com.sybase.collections.CharList

public class CharList
extends java.util.Vector

A list of Character elements.


Field Summary
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Constructor Summary
CharList(int capacity)
          Initializes a new instance of the CharList class that is empty and has the specified initial capacity.
 
Method Summary
 void add(char item)
          Constructs a Character element based on the argument and adds it to end of this list.
 int add(java.lang.Character x)
          Adds the specified Character to the end of this list, increasing its size by one.
 CharList addThis(java.lang.Character item)
          Sybase internal use only.
static CharList fromJSON(java.lang.Object array)
          Sybase internal use only.
 java.lang.Character getByIndex(int index)
          Gets the Character element at the specified index.
 void insert(int index, java.lang.Character x)
          Inserts the specified Character in this list at the specified index.
 java.lang.Character item(int index)
          Returns the element at the specified index.
 void remove(java.lang.Character x)
          Removes the first occurrence of the argument from this list.
 CharList slice(int skip, int take)
          Returns a new list by copying the specified number of elements from the specified index
static JsonArray toJSON(CharList _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

CharList

public CharList(int capacity)
Initializes a new instance of the CharList class that is empty and has the specified initial capacity.

Parameters:
capacity - The initial number of elements that the CharList can contain.
Method Detail

getByIndex

public java.lang.Character getByIndex(int index)
Gets the Character element at the specified index.

Parameters:
index - The zero-based index of the Character to find.
Returns:
Returns Character.

add

public int add(java.lang.Character x)
Adds the specified Character to the end of this list, increasing its size by one.

Parameters:
x - The Character to add
Returns:
The index of the added Character

insert

public void insert(int index,
                   java.lang.Character x)
Inserts the specified Character in this list at the specified index.

Parameters:
index - Where to insert
x - The Character to insert

remove

public void remove(java.lang.Character x)
Removes the first occurrence of the argument from this list.

Parameters:
x - The Character to remove.

add

public void add(char item)
Constructs a Character element based on the argument and adds it to end of this list.

Parameters:
item - The element to add

addThis

public CharList addThis(java.lang.Character item)
Sybase internal use only.


item

public java.lang.Character item(int index)
Returns the element at the specified index.

Parameters:
index - Where to find the element.
Returns:
The element at the specified index.

slice

public CharList slice(int skip,
                      int take)
Returns a new list by copying the specified number of elements from the specified index

Parameters:
skip - The index to copy from
take - The number of elements to copy
Returns:
The new constructed list.

fromJSON

public static CharList fromJSON(java.lang.Object array)
Sybase internal use only.


toJSON

public static JsonArray toJSON(CharList _list)
Sybase internal use only.