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
ConstructorDescriptionProperties
(EventId eventId, UserId userId, Double price) Creates an instance of aProperties
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.eventId()
Returns the value of theeventId
record component.final int
hashCode()
Returns a hash code value for this object.price()
Returns the value of theprice
record component.final String
toString()
Returns a string representation of this record class.userId()
Returns the value of theuserId
record 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 theeventId
record component.- Returns:
- the value of the
eventId
record component
-
userId
Returns the value of theuserId
record component.- Returns:
- the value of the
userId
record component
-
price
Returns the value of theprice
record component.- Returns:
- the value of the
price
record component
-