com.sybase.collections
Class NullableShortList

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

public class NullableShortList
extends java.util.Vector

A list of Short elements.


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

NullableShortList

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

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

getByIndex

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

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

add

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

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

insert

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

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

remove

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

Parameters:
x - The Short to remove.

addThis

public NullableShortList addThis(java.lang.Short item)
Sybase internal use only.


item

public java.lang.Short 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 NullableShortList 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 NullableShortList fromJSON(java.lang.Object array)
Sybase internal use only.


toJSON

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