findFirst abstract method
Returns an Optional describing the first element of this stream, or an empty Optional if the stream is empty.
Example
final first = GenericStream.of([1, 2, 3, 4, 5]).findFirst(); // Optional(1)
Implementation
Optional<T> findFirst();