public interface WarehouseNodeList extends OsidList
Like all OsidLists, WarehouseNodeList
provides a means for accessing WarehouseNode elements
sequentially either one at a time or many at a time. Examples:
while (wnl.hasNext()) {
WarehouseNode node = wnl.getNextWarehouseNode();
}
or
while (wnl.hasNext()) {
WarehouseNode[] nodes = wnl.getNextWarehouseNodes(wnl.available());
}
| Modifier and Type | Method and Description |
|---|---|
WarehouseNode |
getNextWarehouseNode()
Gets the next
WarehouseNode in this list. |
WarehouseNode[] |
getNextWarehouseNodes(long n)
Gets the next set of
WarehouseNode elements in this
list. |
WarehouseNode getNextWarehouseNode() throws OperationFailedException
WarehouseNode in this list. WarehouseNode in this list. The
hasNext() method should be used to test that a next
WarehouseNode is available before calling this
method.IllegalStateException - no more elements available in
this listOperationFailedException - unable to complete requestmandatory - This method must be implemented. WarehouseNode[] getNextWarehouseNodes(long n) throws OperationFailedException
WarehouseNode elements in this
list. The specified amount must be less than or equal to the return
from available(). n - the number of WarehouseNode elements
requested which must be less than or equal to
available() WarehouseNode elements.
The length of the array is less than or equal to the
number specified.IllegalStateException - no more elements available in
this listOperationFailedException - unable to complete requestmandatory - This method must be implemented.