Record Class TreasuryRequest
java.lang.Object
java.lang.Record
net.chen.legacyLand.nation.TreasuryRequest
-
Constructor Summary
ConstructorsConstructorDescriptionTreasuryRequest(String requestId, UUID playerId, String nationName, org.bukkit.inventory.ItemStack requestedItem, long requestTime) Creates an instance of aTreasuryRequestrecord 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.Returns the value of thenationNamerecord component.playerId()Returns the value of theplayerIdrecord component.org.bukkit.inventory.ItemStackReturns the value of therequestedItemrecord component.Returns the value of therequestIdrecord component.longReturns the value of therequestTimerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TreasuryRequest
public TreasuryRequest(String requestId, UUID playerId, String nationName, org.bukkit.inventory.ItemStack requestedItem, long requestTime) Creates an instance of aTreasuryRequestrecord class.- Parameters:
requestId- the value for therequestIdrecord componentplayerId- the value for theplayerIdrecord componentnationName- the value for thenationNamerecord componentrequestedItem- the value for therequestedItemrecord componentrequestTime- the value for therequestTimerecord 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. -
requestId
Returns the value of therequestIdrecord component.- Returns:
- the value of the
requestIdrecord component
-
playerId
Returns the value of theplayerIdrecord component.- Returns:
- the value of the
playerIdrecord component
-
nationName
Returns the value of thenationNamerecord component.- Returns:
- the value of the
nationNamerecord component
-
requestedItem
public org.bukkit.inventory.ItemStack requestedItem()Returns the value of therequestedItemrecord component.- Returns:
- the value of the
requestedItemrecord component
-
requestTime
public long requestTime()Returns the value of therequestTimerecord component.- Returns:
- the value of the
requestTimerecord component
-