Record Class NexoriPlayerOutcomeState
java.lang.Object
java.lang.Record
io.github.hyjn.nexori.plugin.api.minigame.NexoriPlayerOutcomeState
- Record Components:
playerUuid- player the outcome belongs to.outcome- outcome currently stored for the player.reason- public reason supplied when the outcome was stored.updatedAtEpochMs- timestamp of the latest outcome update.
public record NexoriPlayerOutcomeState(UUID playerUuid, NexoriMatchResultPlayerOutcome outcome, String reason, long updatedAtEpochMs)
extends Record
Accumulated player outcome currently stored inside an active match.
-
Constructor Summary
ConstructorsConstructorDescriptionNexoriPlayerOutcomeState(UUID playerUuid, NexoriMatchResultPlayerOutcome outcome, String reason, long updatedAtEpochMs) Creates an instance of aNexoriPlayerOutcomeStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.outcome()Returns the value of theoutcomerecord component.Returns the value of theplayerUuidrecord component.reason()Returns the value of thereasonrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of theupdatedAtEpochMsrecord component.
-
Constructor Details
-
NexoriPlayerOutcomeState
public NexoriPlayerOutcomeState(UUID playerUuid, NexoriMatchResultPlayerOutcome outcome, String reason, long updatedAtEpochMs) Creates an instance of aNexoriPlayerOutcomeStaterecord class.- Parameters:
playerUuid- the value for theplayerUuidrecord componentoutcome- the value for theoutcomerecord componentreason- the value for thereasonrecord componentupdatedAtEpochMs- the value for theupdatedAtEpochMsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
playerUuid
Returns the value of theplayerUuidrecord component.- Returns:
- the value of the
playerUuidrecord component
-
outcome
-
reason
-
updatedAtEpochMs
public long updatedAtEpochMs()Returns the value of theupdatedAtEpochMsrecord component.- Returns:
- the value of the
updatedAtEpochMsrecord component
-