Record Class EconomyTransactionLog
java.lang.Object
java.lang.Record
fr.mathildeuh.youneedme.api.storage.EconomyTransactionLog
-
Constructor Summary
ConstructorsConstructorDescriptionEconomyTransactionLog(long id, UUID player, String currencyId, double delta, double balanceAfter, String reason, @Nullable UUID relatedPlayer, long timestamp) Creates an instance of aEconomyTransactionLogrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of thebalanceAfterrecord component.Returns the value of thecurrencyIdrecord component.doubledelta()Returns the value of thedeltarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longid()Returns the value of theidrecord component.player()Returns the value of theplayerrecord component.reason()Returns the value of thereasonrecord component.@Nullable UUIDReturns the value of therelatedPlayerrecord component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EconomyTransactionLog
public EconomyTransactionLog(long id, UUID player, String currencyId, double delta, double balanceAfter, String reason, @Nullable @Nullable UUID relatedPlayer, long timestamp) Creates an instance of aEconomyTransactionLogrecord class.- Parameters:
id- the value for theidrecord componentplayer- the value for theplayerrecord componentcurrencyId- the value for thecurrencyIdrecord componentdelta- the value for thedeltarecord componentbalanceAfter- the value for thebalanceAfterrecord componentreason- the value for thereasonrecord componentrelatedPlayer- the value for therelatedPlayerrecord componenttimestamp- the value for thetimestamprecord 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. -
id
public long id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
player
Returns the value of theplayerrecord component.- Returns:
- the value of the
playerrecord component
-
currencyId
Returns the value of thecurrencyIdrecord component.- Returns:
- the value of the
currencyIdrecord component
-
delta
public double delta()Returns the value of thedeltarecord component.- Returns:
- the value of the
deltarecord component
-
balanceAfter
public double balanceAfter()Returns the value of thebalanceAfterrecord component.- Returns:
- the value of the
balanceAfterrecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-
timestamp
public long timestamp()Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-