Record Class BedrockMarketplaceTransactions.RedemptionResult
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.appearance.BedrockMarketplaceTransactions.RedemptionResult
- Enclosing class:
BedrockMarketplaceTransactions
-
Constructor Summary
ConstructorsConstructorDescriptionRedemptionResult(int succeeded, int failed, List<String> transactionIds) Creates an instance of aRedemptionResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intfailed()Returns the value of thefailedrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of thesucceededrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransactionIdsrecord component.
-
Constructor Details
-
RedemptionResult
Creates an instance of aRedemptionResultrecord class.- Parameters:
succeeded- the value for thesucceededrecord componentfailed- the value for thefailedrecord componenttransactionIds- the value for thetransactionIdsrecord 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. -
succeeded
public int succeeded()Returns the value of thesucceededrecord component.- Returns:
- the value of the
succeededrecord component
-
failed
public int failed()Returns the value of thefailedrecord component.- Returns:
- the value of the
failedrecord component
-
transactionIds
-