Record Class RngSnapshot
java.lang.Object
java.lang.Record
com.knezevic.edaf.v3.core.rng.RngSnapshot
- All Implemented Interfaces:
Serializable
public record RngSnapshot(long masterSeed, Map<String,RngStreamState> streams)
extends Record
implements Serializable
Serializable snapshot of all RNG streams used by a run.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRngSnapshot(long masterSeed, Map<String, RngStreamState> streams) Creates an instance of aRngSnapshotrecord 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.longReturns the value of themasterSeedrecord component.streams()Returns the value of thestreamsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RngSnapshot
Creates an instance of aRngSnapshotrecord class.- Parameters:
masterSeed- the value for themasterSeedrecord componentstreams- the value for thestreamsrecord 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. -
masterSeed
public long masterSeed()Returns the value of themasterSeedrecord component.- Returns:
- the value of the
masterSeedrecord component
-
streams
Returns the value of thestreamsrecord component.- Returns:
- the value of the
streamsrecord component
-