com.teraspaces.qwframework.collections
Class FastListInt

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

public final class FastListInt
extends Object

A primitive version of FastList.


Constructor Summary
FastListInt()
          Instantiates a new FastListInt.
 
Method Summary
 boolean add(int value)
          Appends an element to the end of list.
 void clear()
          Clears the current list and frees up the memory.
 int get(int index)
          Gets an element from the list by specified index.
 boolean isEmpty()
          Checks if the current list is empty.
 int set(int index, int 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

FastListInt

public FastListInt()
Instantiates a new FastListInt.

Method Detail

add

public boolean add(int 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 int get(int index)
Gets an element from the list by specified index.

Parameters:
index - the index
Returns:
the element

set

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

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