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