Record Class UserMutationGenerator.MutationCandidate
java.lang.Object
java.lang.Record
org.ek9lang.compiler.fuzz.UserMutationGenerator.MutationCandidate
- Enclosing class:
UserMutationGenerator
-
Constructor Summary
ConstructorsConstructorDescriptionMutationCandidate(String filename, String source, MutationCategory category, int lineNumber, String original, String replacement) Creates an instance of aMutationCandidaterecord class. -
Method Summary
Modifier and TypeMethodDescriptioncategory()Returns the value of thecategoryrecord 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.intReturns the value of thelineNumberrecord component.original()Returns the value of theoriginalrecord component.Returns the value of thereplacementrecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MutationCandidate
public MutationCandidate(String filename, String source, MutationCategory category, int lineNumber, String original, String replacement) Creates an instance of aMutationCandidaterecord class.- Parameters:
filename- the value for thefilenamerecord componentsource- the value for thesourcerecord componentcategory- the value for thecategoryrecord componentlineNumber- the value for thelineNumberrecord componentoriginal- the value for theoriginalrecord componentreplacement- the value for thereplacementrecord 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
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
category
Returns the value of thecategoryrecord component.- Returns:
- the value of the
categoryrecord component
-
lineNumber
public int lineNumber()Returns the value of thelineNumberrecord component.- Returns:
- the value of the
lineNumberrecord component
-
original
Returns the value of theoriginalrecord component.- Returns:
- the value of the
originalrecord component
-
replacement
Returns the value of thereplacementrecord component.- Returns:
- the value of the
replacementrecord component
-