Package org.exoplatform.social.common
Class ListAccessValidator
- java.lang.Object
-
- org.exoplatform.social.common.ListAccessValidator
-
public class ListAccessValidator extends Object
Validates input information of list access.- Since:
- 1.2.0-GA
-
-
Constructor Summary
Constructors Constructor Description ListAccessValidator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidvalidateIndex(int offset, int limit, int size)Validates index of list access.
-
-
-
Method Detail
-
validateIndex
public static void validateIndex(int offset, int limit, int size) throws IllegalArgumentExceptionValidates index of list access.- Parameters:
offset- Start index.limit- End index.size- The size of list.- Throws:
IllegalArgumentException
-
-