Skip to content

Add specialized PrimitiveIterator combinator methods. #15

@Boereck

Description

@Boereck

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions