Skip to content

Add ranged indexOf(array, target, fromIndex, toIndex) overloads that search for a sub-array target within [fromIndex, toIndex) to Bytes, Chars, Shorts, Ints, Longs, Floats, Doubles, and Booleans, and delegate indexOf(array, target) to indexOf(array, target, 0, array.length). - #8850

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_1017667632
Nov 11, 2026

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

Add ranged indexOf(array, target, fromIndex, toIndex) overloads that search for a sub-array target within [fromIndex, toIndex) to Bytes, Chars, Shorts, Ints, Longs, Floats, Doubles, and Booleans, and delegate indexOf(array, target) to indexOf(array, target, 0, array.length).

Relates to #480

RELNOTES=primitives: Added ranged indexOf(array, target, fromIndex, toIndex) overloads that search for a sub-array target across arrays of all primitive types.

…t search for a sub-array `target` within `[fromIndex, toIndex)` to `Bytes`, `Chars`, `Shorts`, `Ints`, `Longs`, `Floats`, `Doubles`, and `Booleans`, and delegate `indexOf(array, target)` to `indexOf(array, target, 0, array.length)`.

Relates to #480

RELNOTES=`primitives`: Added ranged `indexOf(array, target, fromIndex, toIndex)` overloads that search for a sub-array `target` across arrays of all primitive types.
PiperOrigin-RevId: 1018773446
@copybara-service
copybara-service Bot merged commit d0eedd3 into master Nov 11, 2026
4 checks passed
@copybara-service
copybara-service Bot deleted the test_1017667632 branch November 11, 2026 03:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant