public class OidList extends Object implements Streamable, Iterable<Integer>
Streamable.Closure| Constructor and Description |
|---|
OidList()
Creates an empty oid list.
|
OidList(int initialSize)
Creates an empty oid list with space for at least
initialSize object ids before it will need to expand. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(int oid)
Adds the specified object id to the list if it is not already
there.
|
boolean |
contains(int oid)
Returns true if the specified oid is in the list, false if not.
|
int |
get(int index)
Returns the object id at the specified index.
|
Iterator<Integer> |
iterator() |
boolean |
remove(int oid)
Removes the specified oid from the list.
|
int |
size()
Returns the number of object ids in the list.
|
String |
toString() |
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic OidList()
public OidList(int initialSize)
initialSize object ids before it will need to expand.public int size()
public boolean add(int oid)
public boolean remove(int oid)
public boolean contains(int oid)
public int get(int index)
Copyright © 2015. All rights reserved.