-
Notifications
You must be signed in to change notification settings - Fork 851
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: NativeArray.subList() #901
Conversation
throw new IllegalStateException(); | ||
} | ||
final int len = (int) longLen; | ||
final int len = size(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like we have this pattern at more places, maybe we can remove the duplicated code at all places
toArray()
indexOf()
lastIndexOf()
And maybe we can add some text to the illegal state exception thrown in the size() method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done: e6ba640
Can you address the comment from @rbri ? Other than that this seems fine, but I don't know enough about the guts of NativeArray to understand what this enables. |
@gbrail can you take a look at this PR again? In my humble oppinion, all mentioned points should be solved now. |
Yes, this looks good. Thanks for working on it! |
This adds the missing NativeArray.subList() functionality