org.exoplatform.social.common
Class ListAccessValidator

java.lang.Object
  extended by org.exoplatform.social.common.ListAccessValidator

public class ListAccessValidator
extends Object

Validates input information of list access.

Since:
1.2.0-GA

Constructor Summary
ListAccessValidator()
           
 
Method Summary
static void validateIndex(int offset, int limit, int size)
          Validates index of list access.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListAccessValidator

public ListAccessValidator()
Method Detail

validateIndex

public static void validateIndex(int offset,
                                 int limit,
                                 int size)
                          throws IllegalArgumentException
Validates index of list access.

Parameters:
offset - Start index.
limit - End index.
size - The size of list.
Throws:
IllegalArgumentException


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.