Record Class CompilationException.Problem
java.lang.Object
java.lang.Record
org.springframework.core.test.tools.CompilationException.Problem
- Record Components:
kind- the kind of problemmessage- the description of the problem
- Enclosing class:
CompilationException
public static record CompilationException.Problem(Diagnostic.Kind kind, String message)
extends Record
Description of a problem that lead to a compilation failure.
errors are the most important, but
they might not be enough in case an error is triggered by the presence
of a warning, see Diagnostic.Kind.MANDATORY_WARNING.
- Since:
- 7.0.3
- Author:
- Phillip Webb, Stephane Nicoll
-
Constructor Summary
ConstructorsConstructorDescriptionProblem(Diagnostic.Kind kind, String message) Creates an instance of aProblemrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.message()Returns the value of themessagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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). -
kind
-
message
-