Class ListAccessValidator


  • public class ListAccessValidator
    extends Object
    Validates input information of list access.
    Since:
    1.2.0-GA
    • 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