org.dspace.checker
Class ListDispatcher
java.lang.Object
org.dspace.checker.ListDispatcher
- All Implemented Interfaces:
- BitstreamDispatcher
public class ListDispatcher
- extends Object
- implements BitstreamDispatcher
Really simple dispatcher that just iterates over a pre-defined list of ids.
- Author:
- Jim Downing, Grace Carpenter, Nathan Sarr
|
Method Summary |
int |
next()
Returns the next id for checking, or a sentinel value if there are no
more to check. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ListDispatcher
public ListDispatcher(List<Integer> bitstreamIds)
- Main constructor.
- Parameters:
bitstreamIds -
next
public int next()
- Description copied from interface:
BitstreamDispatcher
- Returns the next id for checking, or a sentinel value if there are no
more to check.
- Specified by:
next in interface BitstreamDispatcher
- Returns:
- the next bitstream id, or BitstreamDispatcher.SENTINEL if there
isn't another value
- See Also:
BitstreamDispatcher.next()
Copyright © 2011 DuraSpace. All Rights Reserved.