Record Class OrderFilters

java.lang.Object
java.lang.Record
app.model.OrderFilters

public record OrderFilters(String customerName, Integer employeeId, String paymentType, LocalDate startDate, LocalDate endDate) extends Record
  • Field Details

    • customerName

      private final String customerName
      The field for the customerName record component.
    • employeeId

      private final Integer employeeId
      The field for the employeeId record component.
    • paymentType

      private final String paymentType
      The field for the paymentType record component.
    • startDate

      private final LocalDate startDate
      The field for the startDate record component.
    • endDate

      private final LocalDate endDate
      The field for the endDate record component.
  • Constructor Details

    • OrderFilters

      public OrderFilters(String customerName, Integer employeeId, String paymentType, LocalDate startDate, LocalDate endDate)
      Creates an instance of a OrderFilters record class.
      Parameters:
      customerName - the value for the customerName record component
      employeeId - the value for the employeeId record component
      paymentType - the value for the paymentType record component
      startDate - the value for the startDate record component
      endDate - the value for the endDate record component
  • Method Details

    • normalize

      private static String normalize(String value)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • customerName

      public String customerName()
      Returns the value of the customerName record component.
      Returns:
      the value of the customerName record component
    • employeeId

      public Integer employeeId()
      Returns the value of the employeeId record component.
      Returns:
      the value of the employeeId record component
    • paymentType

      public String paymentType()
      Returns the value of the paymentType record component.
      Returns:
      the value of the paymentType record component
    • startDate

      public LocalDate startDate()
      Returns the value of the startDate record component.
      Returns:
      the value of the startDate record component
    • endDate

      public LocalDate endDate()
      Returns the value of the endDate record component.
      Returns:
      the value of the endDate record component