Record Class BatchOperations.BatchResult
java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.server.economy.capability.BatchOperations.BatchResult
- Enclosing interface:
BatchOperations
public static record BatchOperations.BatchResult(boolean completelySuccessful, List<TransactionResult> results, int successfulCount, int failedCount)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBatchResult(boolean completelySuccessful, List<TransactionResult> results, int successfulCount, int failedCount) Creates an instance of aBatchResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecompletelySuccessfulrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefailedCountrecord component.final inthashCode()Returns a hash code value for this object.results()Returns the value of theresultsrecord component.intReturns the value of thesuccessfulCountrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BatchResult
public BatchResult(boolean completelySuccessful, List<TransactionResult> results, int successfulCount, int failedCount) Creates an instance of aBatchResultrecord class.- Parameters:
completelySuccessful- the value for thecompletelySuccessfulrecord componentresults- the value for theresultsrecord componentsuccessfulCount- the value for thesuccessfulCountrecord componentfailedCount- the value for thefailedCountrecord 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. -
completelySuccessful
public boolean completelySuccessful()Returns the value of thecompletelySuccessfulrecord component.- Returns:
- the value of the
completelySuccessfulrecord component
-
results
Returns the value of theresultsrecord component.- Returns:
- the value of the
resultsrecord component
-
successfulCount
public int successfulCount()Returns the value of thesuccessfulCountrecord component.- Returns:
- the value of the
successfulCountrecord component
-
failedCount
public int failedCount()Returns the value of thefailedCountrecord component.- Returns:
- the value of the
failedCountrecord component
-