Record Class FinalFieldRestrictionsExamples.MutationProbeResult
java.lang.Object
java.lang.Record
net.jrodolfo.java_evolution.java26.final_field_restrictions.FinalFieldRestrictionsExamples.MutationProbeResult
- Record Components:
sourceFile- generated source filecompilation- child compiler resultexecution- child runtime result
- Enclosing class:
FinalFieldRestrictionsExamples
public static record FinalFieldRestrictionsExamples.MutationProbeResult(Path sourceFile, FinalFieldRestrictionsExamples.CommandResult compilation, FinalFieldRestrictionsExamples.CommandResult execution)
extends Record
Complete result of a final-field mutation probe.
-
Constructor Summary
ConstructorsConstructorDescriptionMutationProbeResult(Path sourceFile, FinalFieldRestrictionsExamples.CommandResult compilation, FinalFieldRestrictionsExamples.CommandResult execution) Creates an instance of aMutationProbeResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecompilationrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexecutionrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thesourceFilerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MutationProbeResult
public MutationProbeResult(Path sourceFile, FinalFieldRestrictionsExamples.CommandResult compilation, FinalFieldRestrictionsExamples.CommandResult execution) Creates an instance of aMutationProbeResultrecord class.- Parameters:
sourceFile- the value for thesourceFilerecord componentcompilation- the value for thecompilationrecord componentexecution- the value for theexecutionrecord 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). -
sourceFile
Returns the value of thesourceFilerecord component.- Returns:
- the value of the
sourceFilerecord component
-
compilation
Returns the value of thecompilationrecord component.- Returns:
- the value of the
compilationrecord component
-
execution
-