public class OIDList
extends java.lang.Object
implements java.lang.Iterable<java.lang.Long>
It stores a Sparksee object identifier list.
Use OIDListIterator to access all elements into this collection.
Constructor and Description |
---|
OIDList()
Constructor.
|
OIDList(java.util.Collection<java.lang.Long> col)
Creates a new instance from a long collection.
|
OIDList(int numInvalidOIDs)
Constructor.
|
OIDList(long[] list)
Creates a new instance from a long array.
|
Modifier and Type | Method and Description |
---|---|
void |
add(long attr)
Adds a Sparksee object identifier at the end of the list.
|
void |
clear()
Clears the list.
|
int |
count()
Number of elements in the list.
|
OIDListIterator |
iterator()
Gets a new OIDListIterator.
|
void |
set(int pos,
long oid)
Sets a Sparksee object identifier at the specified position of the list.
|
public OIDList(java.util.Collection<java.lang.Long> col)
col
- Collection to initialize the instance.public OIDList(int numInvalidOIDs)
This creates a list with N invalid oids.
numInvalidOIDs
- [in] The number of invalid oids added to the list.public OIDList(long[] list)
list
- Long array to initialize the instance.public OIDList()
This creates an empty list.
public void clear()
public void set(int pos, long oid)
pos
- [in] List position [0..Count()-1].oid
- [in] Sparksee object identifier.public OIDListIterator iterator()
iterator
in interface java.lang.Iterable<java.lang.Long>
public void add(long attr)
attr
- [in] Sparksee object identifier.public int count()