public class AttributeList
extends java.lang.Object
implements java.lang.Iterable<java.lang.Integer>
It stores a Sparksee attribute identifier list.
Use AttributeListIterator to access all elements into this collection.
Constructor and Description |
---|
AttributeList()
Constructor.
|
AttributeList(java.util.Collection<java.lang.Integer> col)
Creates a new instance from an integer collection.
|
AttributeList(int[] list)
Creates a new instance from an integer array.
|
Modifier and Type | Method and Description |
---|---|
void |
add(int attr)
Adds a Sparksee attribute identifier at the end of the list.
|
void |
clear()
Clears the list.
|
int |
count()
Number of elements in the list.
|
AttributeListIterator |
iterator()
Gets a new AttributeListIterator.
|
public AttributeList()
This creates an empty list.
public AttributeList(int[] list)
list
- Integer array to initialize the instance.public AttributeList(java.util.Collection<java.lang.Integer> col)
col
- Collection to initialize the instance.public void add(int attr)
attr
- [in] Sparksee attribute identifier.public void clear()
public AttributeListIterator iterator()
iterator
in interface java.lang.Iterable<java.lang.Integer>
public int count()