Libraryless. Click here for Pure Java version (34L/1K).
1 | svoid subListRangeCheck(int fromIndex, int toIndex, int size) {
|
2 | if (fromIndex < 0) |
3 | throw new IndexOutOfBoundsException("fromIndex = " + fromIndex);
|
4 | if (toIndex > size) |
5 | throw new IndexOutOfBoundsException("toIndex = " + toIndex);
|
6 | if (fromIndex > toIndex) |
7 | throw new IllegalArgumentException("fromIndex(" + fromIndex +
|
8 | ") > toIndex(" + toIndex + ")");
|
9 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
| Snippet ID: | #1031885 |
| Snippet name: | subListRangeCheck |
| Eternal ID of this version: | #1031885/1 |
| Text MD5: | 9ebee2fb61818d3e8fa64427c125afee |
| Transpilation MD5: | 2a102f3816697f200b1edc37dab8e56c |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-07-24 02:18:41 |
| Source code size: | 423 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 365 / 498 |
| Referenced in: | [show references] |