Class AttributeList
java.lang.Object
com.sparsity.sparksee.gdb.AttributeList
Sparksee attribute identifier list.
It stores a Sparksee attribute identifier list. Optionally it may also store tha corresponding attribute names. It can also optionally store a single set of values for each attribute.
Use AttributeListIterator to access all elements into this collection.
- Author:
- Sparsity Technologies http://www.sparsity-technologies.com
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor.AttributeList(int[] list) Creates a new instance from an integer array.AttributeList(Collection<Integer> col) Creates a new instance from an integer collection. -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
AttributeList
public AttributeList()Constructor.This creates an empty list.
-
AttributeList
public AttributeList(int[] list) Creates a new instance from an integer array.- Parameters:
list- Integer array to initialize the instance.
-
AttributeList
Creates a new instance from an integer collection.- Parameters:
col- Collection to initialize the instance.
-
-
Method Details
-
add
public void add(int attr) Adds a Sparksee attribute identifier at the end of the list.- Parameters:
attr- [in] Sparksee attribute identifier.
-
clear
public void clear()Clears the list. -
iterator
Gets a new AttributeListIterator. -
count
public int count()Number of elements in the list.- Returns:
- Number of elements in the list.
-