- Type Parameters:
E - the iterator element type
- All Implemented Interfaces:
- Function<Iterator<E>,Optional<E>>
public class MaybeLastElement<E>
extends Object
implements Function<Iterator<E>,Optional<E>>
gives up only after consuming the last element (and returns it)
- Author:
- rferranti