public interface AntimatroidList extends OsidList
Like all OsidLists,
AntimatroidList
provides a means for accessing Antimatroid
elements
sequentially either one at a time or many at a time. Examples:
while (al.hasNext()) { Antimatroid antimatroid = al.getNextAntimatroid(); }or
while (al.hasNext()) { Antimatroid[] antimatroids = al.getNextAntimatroids(al.available()); }
Modifier and Type | Method and Description |
---|---|
Antimatroid |
getNextAntimatroid()
Gets the next
Antimatroid in this list. |
Antimatroid[] |
getNextAntimatroids(long n)
Gets the next set of
Antimatroid elements in this list. |
Antimatroid getNextAntimatroid() throws OperationFailedException
Antimatroid
in this list. Antimatroid
in this list. The
hasNext()
method should be used to test that a next
Antimatroid
is available before calling this
method.IllegalStateException
- no more elements available in
this listOperationFailedException
- unable to complete requestmandatory
- This method must be implemented. Antimatroid[] getNextAntimatroids(long n) throws OperationFailedException
Antimatroid
elements in this list.
The specified amount must be less than or equal to the return from
available().
n
- the number of Antimatroid
elements requested
which must be less than or equal to available()
Antimatroid
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.