Record Class QaCorpusLoader.FileTargetedMutations
java.lang.Object
java.lang.Record
org.ek9lang.compiler.fuzz.QaCorpusLoader.FileTargetedMutations
- Enclosing class:
QaCorpusLoader
static record QaCorpusLoader.FileTargetedMutations(String filename, String originalSource, boolean dev, List<TypicalError> typicalErrors, List<NamedSource> companionSources)
extends Record
A Q&A file paired with its original source, the typical-error mutations to apply,
and any companion sources needed for multi-file Q&A compilation.
-
Constructor Summary
ConstructorsConstructorDescriptionFileTargetedMutations(String filename, String originalSource, boolean dev, List<TypicalError> typicalErrors, List<NamedSource> companionSources) Creates an instance of aFileTargetedMutationsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecompanionSourcesrecord component.booleandev()Returns the value of thedevrecord component.final booleanIndicates whether some other object is "equal to" this one.filename()Returns the value of thefilenamerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theoriginalSourcerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetypicalErrorsrecord component.
-
Constructor Details
-
FileTargetedMutations
FileTargetedMutations(String filename, String originalSource, boolean dev, List<TypicalError> typicalErrors, List<NamedSource> companionSources) Creates an instance of aFileTargetedMutationsrecord class.- Parameters:
filename- the value for thefilenamerecord componentoriginalSource- the value for theoriginalSourcerecord componentdev- the value for thedevrecord componenttypicalErrors- the value for thetypicalErrorsrecord componentcompanionSources- the value for thecompanionSourcesrecord 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. -
filename
Returns the value of thefilenamerecord component.- Returns:
- the value of the
filenamerecord component
-
originalSource
Returns the value of theoriginalSourcerecord component.- Returns:
- the value of the
originalSourcerecord component
-
dev
public boolean dev()Returns the value of thedevrecord component.- Returns:
- the value of the
devrecord component
-
typicalErrors
Returns the value of thetypicalErrorsrecord component.- Returns:
- the value of the
typicalErrorsrecord component
-
companionSources
Returns the value of thecompanionSourcesrecord component.- Returns:
- the value of the
companionSourcesrecord component
-