Record Class ColumnDefinition
java.lang.Object
java.lang.Record
io.bloviate.file.ColumnDefinition
- Record Components:
name- the name of the columndataGenerator- the generator used to produce values for this column
Defines a column for flat file generation.
This record pairs a column name with its corresponding data generator,
specifying how data should be generated for that column in the output file.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionColumnDefinition(String name, DataGenerator<?> dataGenerator) Creates an instance of aColumnDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedataGeneratorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ColumnDefinition
Creates an instance of aColumnDefinitionrecord class.- Parameters:
name- the value for thenamerecord componentdataGenerator- the value for thedataGeneratorrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
name
-
dataGenerator
Returns the value of thedataGeneratorrecord component.- Returns:
- the value of the
dataGeneratorrecord component
-