Class OIDList
java.lang.Object
com.sparsity.sparksee.gdb.OIDList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(long attr) Adds a Sparksee object identifier at the end of the list.voidclear()Clears the list.intcount()Number of elements in the list.iterator()Gets a new OIDListIterator.voidset(int pos, long oid) Sets a Sparksee object identifier at the specified position of the list.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
OIDList
Creates a new instance from a long collection.- Parameters:
col- Collection to initialize the instance.
-
OIDList
public OIDList(int numInvalidOIDs) Constructor.This creates a list with N invalid oids.
- Parameters:
numInvalidOIDs- [in] The number of invalid oids added to the list.
-
OIDList
public OIDList(long[] list) Creates a new instance from a long array.- Parameters:
list- Long array to initialize the instance.
-
OIDList
public OIDList()Constructor.This creates an empty list.
-
-
Method Details
-
clear
public void clear()Clears the list. -
set
public void set(int pos, long oid) Sets a Sparksee object identifier at the specified position of the list.- Parameters:
pos- [in] List position [0..Count()-1].oid- [in] Sparksee object identifier.
-
iterator
Gets a new OIDListIterator. -
add
public void add(long attr) Adds a Sparksee object identifier at the end of the list.- Parameters:
attr- [in] Sparksee object identifier.
-
count
public int count()Number of elements in the list.- Returns:
- Number of elements in the list.
-