Class IteratorFirstResult<T>

  • All Implemented Interfaces:
    Result<T>, Serializable

    public class IteratorFirstResult<T>
    extends ResultCache<T>
    Extracts the first value of the iterator as the result value. If the iterator has no first value, the result value is null.
    Author:
    Jeff Schnitzer
    See Also:
    Serialized Form
    • Constructor Detail

      • IteratorFirstResult

        public IteratorFirstResult​(Iterator<T> iterator)