- All Implemented Interfaces:
- Provider<Maybe<T>>
public class IteratingProvider<T>
extends Object
implements Provider<Maybe<T>>
Adapts an Iterator<T> to a Provider<Maybe<T>>. This is a
stateful provider yielding Just elements of the source iterator, and Nothing
when the iterator is consumed.
- Author:
- rferranti