Record Class OrderFilters
java.lang.Object
java.lang.Record
app.model.OrderFilters
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thecustomerNamerecord component.private final IntegerThe field for theemployeeIdrecord component.private final LocalDateThe field for theendDaterecord component.private final StringThe field for thepaymentTyperecord component.private final LocalDateThe field for thestartDaterecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecustomerNamerecord component.Returns the value of theemployeeIdrecord component.endDate()Returns the value of theendDaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.private static StringReturns the value of thepaymentTyperecord component.Returns the value of thestartDaterecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
customerName
The field for thecustomerNamerecord component. -
employeeId
The field for theemployeeIdrecord component. -
paymentType
The field for thepaymentTyperecord component. -
startDate
The field for thestartDaterecord component. -
endDate
The field for theendDaterecord component.
-
-
Constructor Details
-
OrderFilters
public OrderFilters(String customerName, Integer employeeId, String paymentType, LocalDate startDate, LocalDate endDate) Creates an instance of aOrderFiltersrecord class.- Parameters:
customerName- the value for thecustomerNamerecord componentemployeeId- the value for theemployeeIdrecord componentpaymentType- the value for thepaymentTyperecord componentstartDate- the value for thestartDaterecord componentendDate- the value for theendDaterecord component
-
-
Method Details
-
normalize
-
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 withObjects::equals(Object,Object). -
customerName
Returns the value of thecustomerNamerecord component.- Returns:
- the value of the
customerNamerecord component
-
employeeId
Returns the value of theemployeeIdrecord component.- Returns:
- the value of the
employeeIdrecord component
-
paymentType
Returns the value of thepaymentTyperecord component.- Returns:
- the value of the
paymentTyperecord component
-
startDate
Returns the value of thestartDaterecord component.- Returns:
- the value of the
startDaterecord component
-
endDate
Returns the value of theendDaterecord component.- Returns:
- the value of the
endDaterecord component
-