Record Class BatchOperations.BatchSimulation
java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.server.economy.capability.BatchOperations.BatchSimulation
- Enclosing interface:
BatchOperations
public static record BatchOperations.BatchSimulation(boolean completelySuccessful, List<TransactionResult> predictedResults, BigDecimal totalVolume)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBatchSimulation(boolean completelySuccessful, List<TransactionResult> predictedResults, BigDecimal totalVolume) Creates an instance of aBatchSimulationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecompletelySuccessfulrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepredictedResultsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetotalVolumerecord component.
-
Constructor Details
-
BatchSimulation
public BatchSimulation(boolean completelySuccessful, List<TransactionResult> predictedResults, BigDecimal totalVolume) Creates an instance of aBatchSimulationrecord class.- Parameters:
completelySuccessful- the value for thecompletelySuccessfulrecord componentpredictedResults- the value for thepredictedResultsrecord componenttotalVolume- the value for thetotalVolumerecord 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
-
predictedResults
Returns the value of thepredictedResultsrecord component.- Returns:
- the value of the
predictedResultsrecord component
-
totalVolume
Returns the value of thetotalVolumerecord component.- Returns:
- the value of the
totalVolumerecord component
-