Record Class SimulationSource
java.lang.Object
java.lang.Record
org.episteme.natural.physics.classical.mechanics.simulation.providers.SimulationSource
-
Constructor Summary
ConstructorsConstructorDescriptionSimulationSource(List<Runnable> tasks, int parallelism) Creates an instance of aSimulationSourcerecord 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.intReturns the value of theparallelismrecord component.tasks()Returns the value of thetasksrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SimulationSource
-
-
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. -
tasks
-
parallelism
public int parallelism()Returns the value of theparallelismrecord component.- Returns:
- the value of the
parallelismrecord component
-