Record Class ProviderBoundaryAnalyzer.Result
java.lang.Object
java.lang.Record
org.hibernate.orm.tooling.dialectprovider.internal.ProviderBoundaryAnalyzer.Result
- Enclosing class:
ProviderBoundaryAnalyzer
public static record ProviderBoundaryAnalyzer.Result(List<ProviderBoundaryAnalyzer.Diagnostic> diagnostics)
extends Record
Complete boundary-analysis result.
-
Constructor Summary
ConstructorsConstructorDescriptionResult(List<ProviderBoundaryAnalyzer.Diagnostic> diagnostics) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thediagnosticsrecord component.final booleanIndicates whether some other object is "equal to" this one.intbooleanfails(boolean warningsAsErrors) booleanfinal inthashCode()Returns a hash code value for this object.booleanfinal StringtoString()Returns a string representation of this record class.int
-
Constructor Details
-
Result
Creates an instance of aResultrecord class.- Parameters:
diagnostics- the value for thediagnosticsrecord component
-
-
Method Details
-
warningCount
public int warningCount() -
errorCount
public int errorCount() -
hasWarnings
public boolean hasWarnings() -
hasErrors
public boolean hasErrors() -
fails
public boolean fails(boolean warningsAsErrors) -
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). -
diagnostics
Returns the value of thediagnosticsrecord component.- Returns:
- the value of the
diagnosticsrecord component
-