Record Class PlayerConfirmation.ConfirmationValue
java.lang.Object
java.lang.Record
ua.mcchickenstudio.opencreative.utils.PlayerConfirmation.ConfirmationValue
- Record Components:
confirmation- type of confirmation.data- additional data.
- Enclosing class:
PlayerConfirmation
public static record PlayerConfirmation.ConfirmationValue(@NotNull PlayerConfirmation confirmation, @Nullable Object data)
extends Record
This record represents confirmation value, that stores
type of confirmation and additional data.
-
Constructor Summary
ConstructorsConstructorDescriptionConfirmationValue(@NotNull PlayerConfirmation confirmation, @Nullable Object data) Creates an instance of aConfirmationValuerecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull PlayerConfirmationReturns the value of theconfirmationrecord component.@Nullable Objectdata()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConfirmationValue
public ConfirmationValue(@NotNull @NotNull PlayerConfirmation confirmation, @Nullable @Nullable Object data) Creates an instance of aConfirmationValuerecord class.- Parameters:
confirmation- the value for theconfirmationrecord componentdata- the value for thedatarecord component
-
-
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). -
confirmation
Returns the value of theconfirmationrecord component.- Returns:
- the value of the
confirmationrecord component
-
data
-