OptionalLong indexOf(T item)
OptionalLong indexOf(Predicate<? super T> predicate)
The latter is also not unexpected, given the existing Seq.findFirst(Predicate). I think we should prefer OptionalLong over the historic -1 encoding in a primitive long as it fits better into the Stream / Seq API.
Would you be interested in providing a pull request for this?