Record Class InventoryController.UsageDateRange
java.lang.Object
java.lang.Record
app.controller.manager.InventoryController.UsageDateRange
- Enclosing class:
InventoryController
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateUsageDateRange(LocalDate startDate, LocalDate endDate) Creates an instance of aUsageDateRangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionendDate()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.Returns the value of thestartDaterecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
startDate
The field for thestartDaterecord component. -
endDate
The field for theendDaterecord component.
-
-
Constructor Details
-
UsageDateRange
-
-
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 withObjects::equals(Object,Object). -
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
-