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 Details

    • ListAccessValidator

      public ListAccessValidator()
  • Method Details

    • 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