- Type Parameters:
E - the iterator element type
- All Implemented Interfaces:
- Function<Iterator<E>,Optional<E>>
public class MaybeOneElement<E>
extends Object
implements Function<Iterator<E>,Optional<E>>
Searches for zero or one element, throws if more than one element is found.
- Author:
- rferranti