Record Class FixedTextValidation.Settings
java.lang.Object
java.lang.Record
io.github.kirstenali.deepj.training.FixedTextValidation.Settings
- Enclosing class:
FixedTextValidation
public static record FixedTextValidation.Settings(int sequenceLength, int batches, int batchSize, long seed)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSettings(int sequenceLength, int batches, int batchSize, long seed) Creates an instance of aSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintbatches()Returns the value of thebatchesrecord component.intReturns the value of thebatchSizerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longseed()Returns the value of theseedrecord component.intReturns the value of thesequenceLengthrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Settings
public Settings(int sequenceLength, int batches, int batchSize, long seed) Creates an instance of aSettingsrecord class.- Parameters:
sequenceLength- the value for thesequenceLengthrecord componentbatches- the value for thebatchesrecord componentbatchSize- the value for thebatchSizerecord componentseed- the value for theseedrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. All components in this record class are compared with '=='. -
sequenceLength
public int sequenceLength()Returns the value of thesequenceLengthrecord component.- Returns:
- the value of the
sequenceLengthrecord component
-
batches
public int batches()Returns the value of thebatchesrecord component.- Returns:
- the value of the
batchesrecord component
-
batchSize
public int batchSize()Returns the value of thebatchSizerecord component.- Returns:
- the value of the
batchSizerecord component
-
seed
public long seed()Returns the value of theseedrecord component.- Returns:
- the value of the
seedrecord component
-