Record Class OrderHistoryController.PageResult
java.lang.Object
java.lang.Record
app.controller.manager.OrderHistoryController.PageResult
- Enclosing class:
OrderHistoryController
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for theordersrecord component.private final intThe field for thepagerecord component.private final intThe field for thetotalOrdersrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePageResult(List<Order> orders, int totalOrders, int page) Creates an instance of aPageResultrecord 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.orders()Returns the value of theordersrecord component.intpage()Returns the value of thepagerecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalOrdersrecord component.
-
Field Details
-
orders
-
totalOrders
private final int totalOrdersThe field for thetotalOrdersrecord component. -
page
private final int pageThe field for thepagerecord component.
-
-
Constructor Details
-
PageResult
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
orders
-
totalOrders
public int totalOrders()Returns the value of thetotalOrdersrecord component.- Returns:
- the value of the
totalOrdersrecord component
-
page
public int page()Returns the value of thepagerecord component.- Returns:
- the value of the
pagerecord component
-