Package org.dspace.checker
Class IteratorDispatcher
- java.lang.Object
-
- org.dspace.checker.IteratorDispatcher
-
- All Implemented Interfaces:
BitstreamDispatcher
public class IteratorDispatcher extends Object implements BitstreamDispatcher
Really simple dispatcher that just iterates over a pre-defined list of ids.- Author:
- Jim Downing, Grace Carpenter, Nathan Sarr
-
-
Field Summary
Fields Modifier and Type Field Description protected Iterator<Bitstream>bitstreamsList of Integer ids.-
Fields inherited from interface org.dspace.checker.BitstreamDispatcher
SENTINEL
-
-
Constructor Summary
Constructors Constructor Description IteratorDispatcher(Iterator<Bitstream> bitstreams)Main constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Bitstreamnext()Returns the next id for checking, or a sentinel value if there are no more to check.
-
-
-
Method Detail
-
next
public Bitstream next()
Description copied from interface:BitstreamDispatcherReturns the next id for checking, or a sentinel value if there are no more to check.- Specified by:
nextin interfaceBitstreamDispatcher- Returns:
- the next bitstream id, or BitstreamDispatcher.SENTINEL if there isn't another value
- See Also:
BitstreamDispatcher.next()
-
-