Record Class ValidationReport
java.lang.Object
java.lang.Record
fr.robie.machineengine.api.diagnostic.ValidationReport
Everything found in one validation pass. Validation reports all findings at once, not only the
first one (ยง24).
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionValidationReport(@NotNull List<Diagnostic> diagnostics) Creates an instance of aValidationReportrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull List<Diagnostic> Returns the value of thediagnosticsrecord component.final booleanIndicates whether some other object is "equal to" this one.@NotNull List<Diagnostic> errors()@NotNull Stringformat()Multi-line, log-friendly rendering.booleanfinal inthashCode()Returns a hash code value for this object.@NotNull ValidationReportmerge(@NotNull ValidationReport other) static @NotNull ValidationReportof(@NotNull Collection<Diagnostic> diagnostics) final StringtoString()Returns a string representation of this record class.@NotNull List<Diagnostic> warnings()
-
Field Details
-
EMPTY
-
-
Constructor Details
-
ValidationReport
Creates an instance of aValidationReportrecord class.- Parameters:
diagnostics- the value for thediagnosticsrecord component
-
-
Method Details
-
of
@NotNull public static @NotNull ValidationReport of(@NotNull @NotNull Collection<Diagnostic> diagnostics) -
errors
-
warnings
-
hasErrors
public boolean hasErrors() -
failedAddons
-
merge
-
format
Multi-line, log-friendly rendering. -
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
-