Record Class CompilationResult
java.lang.Object
java.lang.Record
cool.klass.model.converter.compiler.CompilationResult
public record CompilationResult(org.eclipse.collections.api.list.ImmutableList<RootCompilerAnnotation> compilerAnnotations, Optional<DomainModelWithSourceCode> domainModelWithSourceCode)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCompilationResult(org.eclipse.collections.api.list.ImmutableList<RootCompilerAnnotation> compilerAnnotations, Optional<DomainModelWithSourceCode> domainModelWithSourceCode) Creates an instance of aCompilationResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.collections.api.list.ImmutableList<RootCompilerAnnotation> Returns the value of thecompilerAnnotationsrecord component.Returns the value of thedomainModelWithSourceCoderecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CompilationResult
public CompilationResult(org.eclipse.collections.api.list.ImmutableList<RootCompilerAnnotation> compilerAnnotations, Optional<DomainModelWithSourceCode> domainModelWithSourceCode) Creates an instance of aCompilationResultrecord class.- Parameters:
compilerAnnotations- the value for thecompilerAnnotationsrecord componentdomainModelWithSourceCode- the value for thedomainModelWithSourceCoderecord 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). -
compilerAnnotations
Returns the value of thecompilerAnnotationsrecord component.- Returns:
- the value of the
compilerAnnotationsrecord component
-
domainModelWithSourceCode
Returns the value of thedomainModelWithSourceCoderecord component.- Returns:
- the value of the
domainModelWithSourceCoderecord component
-