public class ListAccessValidator extends Object
| Constructor and Description |
|---|
ListAccessValidator() |
| Modifier and Type | Method and Description |
|---|---|
static void |
validateIndex(int offset,
int limit,
int size)
Validates index of list access.
|
public static void validateIndex(int offset,
int limit,
int size)
throws IllegalArgumentException
offset - Start index.limit - End index.size - The size of list.IllegalArgumentExceptionCopyright © 2003–2018 eXo Platform SAS. All rights reserved.