Record Class PurchaseWindow.Properties
java.lang.Object
java.lang.Record
passport.application.desktop.ui.purchase.PurchaseWindow.Properties
- Enclosing class:
PurchaseWindow
public static record PurchaseWindow.Properties(EventId eventId, UserId userId, Double price)
extends Record
Holds properties related to the purchase, including event and user IDs,
and ticket price.
-
Constructor Summary
ConstructorsConstructorDescriptionProperties(EventId eventId, UserId userId, Double price) Creates an instance of aPropertiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.eventId()Returns the value of theeventIdrecord component.final inthashCode()Returns a hash code value for this object.price()Returns the value of thepricerecord component.final StringtoString()Returns a string representation of this record class.userId()Returns the value of theuserIdrecord component.
-
Constructor Details
-
Properties
-
-
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). -
eventId
Returns the value of theeventIdrecord component.- Returns:
- the value of the
eventIdrecord component
-
userId
Returns the value of theuserIdrecord component.- Returns:
- the value of the
userIdrecord component
-
price
Returns the value of thepricerecord component.- Returns:
- the value of the
pricerecord component
-