Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add specialized PrimitiveIterator combinator methods. #15

Open
24 tasks
Boereck opened this issue May 11, 2018 · 0 comments
Open
24 tasks

Add specialized PrimitiveIterator combinator methods. #15

Boereck opened this issue May 11, 2018 · 0 comments

Comments

@Boereck
Copy link
Member

Boereck commented May 11, 2018

Add a couple of extension combinator methods / terminal Methods to the PrimitiveIterator sub-interfaces.
The following methods seem to be the most interesting:

  • static def boolean anyMatch(PrimitiveIterator.OfInt intIterator, IntPredicate test)

  • static def boolean allMatch(PrimitiveIterator.OfInt intIterator, IntPredicate test)

  • static def boolean noneMatch(PrimitiveIterator.OfInt intIterator, IntPredicate test)

  • static def OptionalInt findFirst​(PrimitiveIterator.OfInt intIterator, IntPredicate test)

  • static def OptionalInt findFirst​(PrimitiveIterator.OfInt intIterator)

  • static def PrimitiveIterator.OfInt filter(PrimitiveIterator.OfInt intIterator, IntPredicate test)

  • static def OptionalInt reduce(PrimitiveIterator.OfInt intIterator, IntBinaryOperator op)

  • static def int reduce(PrimitiveIterator.OfInt intIterator, int identity, IntBinaryOperator op)

  • static def boolean anyMatch(PrimitiveIterator.OfLong longIterator, LongPredicate test)

  • static def boolean allMatch(PrimitiveIterator.OfLong longIterator, LongPredicate test)

  • static def boolean noneMatch(PrimitiveIterator.OfLong longIterator, LongPredicate test)

  • static def OptionalLong findFirst​(PrimitiveIterator.OfLong longIterator, LongPredicate test)

  • static def OptionalLong findFirst​(PrimitiveIterator.OfLong longIterator)

  • static def PrimitiveIterator.OfLong filter(PrimitiveIterator.OfLong longIterator, LongPredicate test)

  • static def OptionalLong reduce(PrimitiveIterator.OfLong longIterator, LongBinaryOperator op)

  • static def long reduce(PrimitiveIterator.OfLong longIterator, long identity, LongBinaryOperator op)

  • static def boolean anyMatch(PrimitiveIterator.OfDouble doubleIterator, DoublePredicate test)

  • static def boolean allMatch(PrimitiveIterator.OfDouble doubleIterator, DoublePredicate test)

  • static def boolean noneMatch(PrimitiveIterator.OfDouble doubleIterator, DoublePredicate test)

  • static def OptionalLong findFirst​(PrimitiveIterator.OfDouble doubleIterator, DoublePredicate test)

  • static def OptionalLong findFirst​(PrimitiveIterator.OfDouble doubleIterator)

  • static def PrimitiveIterator.OfDouble filter(PrimitiveIterator.OfDouble doubleIterator, DoublePredicate test)

  • static def OptionalDouble reduce(PrimitiveIterator.OfDouble doubleIterator, DoubleBinaryOperator op)

  • static def double reduce(PrimitiveIterator.OfDouble doubleIterator, double identity, DoubleBinaryOperator op)

If you want this ticket to be implemented, please give feedback, since it is only implemented on demand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant