Package overit.geocall.model.paging
Enum Class PageSize
- All Implemented Interfaces:
Serializable,Comparable<PageSize>,Constable
Represents a specific page size.
The value of this page size determines the number of items that can be displayed on a single page.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionintgetValue()Retrieves the number of elements the page can contain.static PageSizeReturns the enum constant of this class with the specified name.static PageSize[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
S
Small page size with maximum elements per page set to 100 -
M
Medium page size with maximum elements per page set to 1000 -
L
Large page size with maximum elements per page set to 10000
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public int getValue()Retrieves the number of elements the page can contain.The value can be configured using the
company.rs.pageSize.{size}property; if not defined, the returned value will be the default value set for the specific page size.- Returns:
- the maximum number of elements a page can contain.
-