Record Class ContractService.ContractView
java.lang.Object
java.lang.Record
dev.yowsef.stealablock.api.progression.ContractService.ContractView
- Enclosing interface:
ContractService
-
Constructor Summary
ConstructorsConstructorDescriptionContractView(@NotNull String typeId, int tier, long target, int rewardCredits, double rewardMoney, boolean completed, boolean claimed) Creates an instance of aContractViewrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanclaimed()Returns the value of theclaimedrecord component.booleanReturns the value of thecompletedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of therewardCreditsrecord component.doubleReturns the value of therewardMoneyrecord component.longtarget()Returns the value of thetargetrecord component.inttier()Returns the value of thetierrecord component.final StringtoString()Returns a string representation of this record class.@NotNull StringtypeId()Returns the value of thetypeIdrecord component.
-
Constructor Details
-
ContractView
public ContractView(@NotNull @NotNull String typeId, int tier, long target, int rewardCredits, double rewardMoney, boolean completed, boolean claimed) Creates an instance of aContractViewrecord class.- Parameters:
typeId- the value for thetypeIdrecord componenttier- the value for thetierrecord componenttarget- the value for thetargetrecord componentrewardCredits- the value for therewardCreditsrecord componentrewardMoney- the value for therewardMoneyrecord componentcompleted- the value for thecompletedrecord componentclaimed- the value for theclaimedrecord 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. -
typeId
Returns the value of thetypeIdrecord component.- Returns:
- the value of the
typeIdrecord component
-
tier
public int tier()Returns the value of thetierrecord component.- Returns:
- the value of the
tierrecord component
-
target
public long target()Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
rewardCredits
public int rewardCredits()Returns the value of therewardCreditsrecord component.- Returns:
- the value of the
rewardCreditsrecord component
-
rewardMoney
public double rewardMoney()Returns the value of therewardMoneyrecord component.- Returns:
- the value of the
rewardMoneyrecord component
-
completed
public boolean completed()Returns the value of thecompletedrecord component.- Returns:
- the value of the
completedrecord component
-
claimed
public boolean claimed()Returns the value of theclaimedrecord component.- Returns:
- the value of the
claimedrecord component
-