Record Class EconomyService.BalanceEntry
java.lang.Object
java.lang.Record
fr.mathildeuh.youneedme.api.economy.EconomyService.BalanceEntry
- Enclosing interface:
EconomyService
-
Constructor Summary
ConstructorsConstructorDescriptionBalanceEntry(UUID player, String lastKnownUsername, double balance) Creates an instance of aBalanceEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoublebalance()Returns the value of thebalancerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelastKnownUsernamerecord component.player()Returns the value of theplayerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BalanceEntry
Creates an instance of aBalanceEntryrecord class.- Parameters:
player- the value for theplayerrecord componentlastKnownUsername- the value for thelastKnownUsernamerecord componentbalance- the value for thebalancerecord 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. -
player
Returns the value of theplayerrecord component.- Returns:
- the value of the
playerrecord component
-
lastKnownUsername
Returns the value of thelastKnownUsernamerecord component.- Returns:
- the value of the
lastKnownUsernamerecord component
-
balance
public double balance()Returns the value of thebalancerecord component.- Returns:
- the value of the
balancerecord component
-