com.teraspaces.qwframework.collections
Class FastListByte

java.lang.Object
  extended by com.teraspaces.qwframework.collections.FastListByte

public final class FastListByte
extends Object

A primitive version of FastList.


Constructor Summary
FastListByte()
          Instantiates a new FastListByte.
 
Method Summary
 boolean add(byte value)
          Appends an element to the end of list.
 void clear()
          Clears the current list and frees up the memory.
 byte get(int index)
          Gets an element from the list by specified index.
 boolean isEmpty()
          Checks if the current list is empty.
 byte set(int index, byte element)
          Sets an element to the list by index.
 int size()
          Gets the size of the list.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FastListByte

public FastListByte()
Instantiates a new FastListByte.

Method Detail

add

public boolean add(byte value)
Appends an element to the end of list.

Parameters:
value - the value
Returns:
true, if successful

size

public int size()
Gets the size of the list.

Returns:
the size

isEmpty

public boolean isEmpty()
Checks if the current list is empty.

Returns:
true, if is empty

clear

public void clear()
Clears the current list and frees up the memory.


get

public byte get(int index)
Gets an element from the list by specified index.

Parameters:
index - the index
Returns:
the element

set

public byte set(int index,
                byte element)
Sets an element to the list by index.

Parameters:
index - the index
element - the element
Returns:
the input