Skip to content

Provide version of AbstractStreamEx#indexOf which returns int #161

@chashnikov

Description

@chashnikov

It's inconvenient to cast result of indexOf from long to int. I think developers usually work with streams which contains less than 2^31 elements. So it would be great to have a variant of this method which returns OptionalInt or even int as List::indexOf does.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions