Record Class LeaderboardProvider.LeaderboardEntry
java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.server.economy.capability.LeaderboardProvider.LeaderboardEntry
- Enclosing interface:
LeaderboardProvider
public static record LeaderboardProvider.LeaderboardEntry(Account account, int rank, BigDecimal balance)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionLeaderboardEntry(Account account, int rank, BigDecimal balance) Creates an instance of aLeaderboardEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaccount()Returns the value of theaccountrecord component.balance()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.intrank()Returns the value of therankrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LeaderboardEntry
Creates an instance of aLeaderboardEntryrecord class.- Parameters:
account- the value for theaccountrecord componentrank- the value for therankrecord 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. -
account
Returns the value of theaccountrecord component.- Returns:
- the value of the
accountrecord component
-
rank
public int rank()Returns the value of therankrecord component.- Returns:
- the value of the
rankrecord component
-
balance
Returns the value of thebalancerecord component.- Returns:
- the value of the
balancerecord component
-