Skip to content

Add lastIndexOf with array target in primitives' utility classes #2617

Open
@sim642

Description

Primitives' utility classes such as Bytes have methods like

  • indexOf(byte[] array, byte target)
  • indexOf(byte[] array, byte[] target)
  • lastIndexOf(byte[] array, byte target)
    for working with arrays of those primitives.

Unfortunately the indexOf and lastIndexOf aren't symmetric in this case as there isn't a method like lastIndexOf(byte[] array, byte[] target), taking an array as target in the lastIndexOf case. Hereby I propose that such method be added to Bytes and other analogous primitives' utility classes.

Activity

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

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