com.sparsity.sparksee.gdb
Class ValueList

java.lang.Object
  extended by com.sparsity.sparksee.gdb.ValueList

public class ValueList
extends java.lang.Object

Value list.

It stores a Value list.

Use ValueListIterator to access all elements into this collection.

Author:
Sparsity Technologies http://www.sparsity-technologies.com

Constructor Summary
ValueList()
          Constructor.
 
Method Summary
 void add(Value value)
          Adds a value to the end of the list.
 void clear()
          Clears the list.
 int count()
          Number of elements in the list.
 Value get(int index)
          Returns the Value at the specified position in the list.
 ValueListIterator iterator()
          Gets a new ValueListIterator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueList

public ValueList()
Constructor.

This creates an empty list.

Method Detail

get

public Value get(int index)
Returns the Value at the specified position in the list.

Parameters:
index - [in] Index of the element to return, starting at 0.

clear

public void clear()
Clears the list.


add

public void add(Value value)
Adds a value to the end of the list.

Parameters:
value - [in] The value to add

iterator

public ValueListIterator iterator()
Gets a new ValueListIterator.

Returns:
ValueListIterator instance.

count

public int count()
Number of elements in the list.

Returns:
Number of elements in the list.