Interface RelationshipEnablerList
- All Superinterfaces:
AutoCloseable, Closeable, OsidList, OsidList
Like all OsidLists , RelationshipEnablerList provides a
means for accessing RelationshipEnabler elements sequentially
either one at a time or many at a time. Examples:
while (rel.hasNext()) {
RelationshipEnabler enabler = rel.getNextRelationshipEnabler();
}
or
while (rel.hasNext()) {
RelationshipEnabler[] enablers = rel.getNextRelationshipEnablers rel.available());
}
-
Method Summary
Modifier and TypeMethodDescriptionGets the nextRelationshipEnablerin this list.getNextRelationshipEnablers(long n) Gets the next set ofRelationshipEnablerelements in this list.
-
Method Details
-
getNextRelationshipEnabler
Gets the nextRelationshipEnablerin this list.- Returns:
- the next
RelationshipEnablerin this list. ThehasNext()method should be used to test that a nextRelationshipEnableris available before calling this method. - Throws:
IllegalStateException- no more elements available in this listOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getNextRelationshipEnablers
Gets the next set ofRelationshipEnablerelements in this list. The specified amount must be less than or equal to the return fromavailable().- Parameters:
n- the number ofRelationshipEnablerelements requested which must be less than or equal toavailable()- Returns:
- an array of
RelationshipEnablerelements. The length of the array is less than or equal to the number specified. - Throws:
IllegalStateException- no more elements available in this listOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-