Record Class PrimitivePatternsFourthPreviewExamples.PrimitivePatternsWorkflowResult
java.lang.Object
java.lang.Record
net.jrodolfo.java_evolution.java26.PrimitivePatternsFourthPreviewExamples.PrimitivePatternsWorkflowResult
- Enclosing class:
PrimitivePatternsFourthPreviewExamples
public static record PrimitivePatternsFourthPreviewExamples.PrimitivePatternsWorkflowResult(Path sourceFile, Path classesDirectory, PrimitivePatternsFourthPreviewExamples.CommandResult compilation, PrimitivePatternsFourthPreviewExamples.CommandResult execution)
extends Record
Result from compiling and running the generated preview source.
-
Constructor Summary
ConstructorsConstructorDescriptionPrimitivePatternsWorkflowResult(Path sourceFile, Path classesDirectory, PrimitivePatternsFourthPreviewExamples.CommandResult compilation, PrimitivePatternsFourthPreviewExamples.CommandResult execution) Creates an instance of aPrimitivePatternsWorkflowResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclassesDirectoryrecord component.Returns 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
-
PrimitivePatternsWorkflowResult
public PrimitivePatternsWorkflowResult(Path sourceFile, Path classesDirectory, PrimitivePatternsFourthPreviewExamples.CommandResult compilation, PrimitivePatternsFourthPreviewExamples.CommandResult execution) Creates an instance of aPrimitivePatternsWorkflowResultrecord class.- Parameters:
sourceFile- the value for thesourceFilerecord componentclassesDirectory- the value for theclassesDirectoryrecord 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
-
classesDirectory
Returns the value of theclassesDirectoryrecord component.- Returns:
- the value of the
classesDirectoryrecord component
-
compilation
Returns the value of thecompilationrecord component.- Returns:
- the value of the
compilationrecord component
-
execution
Returns the value of theexecutionrecord component.- Returns:
- the value of the
executionrecord component
-