Record Class DataSourceController.PageSizeOption
java.lang.Object
java.lang.Record
io.micronaut.controlpanel.panels.datasource.DataSourceController.PageSizeOption
- Record Components:
value- Page-size valueselected- Whether this option is selected
- Enclosing class:
DataSourceController
public static record DataSourceController.PageSizeOption(int value, boolean selected)
extends Record
View model for a table page-size option.
- Since:
- 2.0.0
- Author:
- Álvaro Sánchez-Mariscal
-
Constructor Summary
ConstructorsConstructorDescriptionPageSizeOption(int value, boolean selected) Creates an instance of aPageSizeOptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanselected()Returns the value of theselectedrecord component.final StringtoString()Returns a string representation of this record class.intvalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
PageSizeOption
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
value
-
selected
-