Record Class TestConfigurationValidator.TestConfigurationIssue
java.lang.Object
java.lang.Record
org.ek9lang.cli.TestConfigurationValidator.TestConfigurationIssue
- Enclosing class:
TestConfigurationValidator
public static record TestConfigurationValidator.TestConfigurationIssue(TestConfigurationError error, Path location, String message, String suggestion)
extends Record
A test configuration issue with error code, location, message, and optional suggestion.
-
Constructor Summary
ConstructorsConstructorDescriptionTestConfigurationIssue(TestConfigurationError error, Path location, String message, String suggestion) Creates an instance of aTestConfigurationIssuerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.location()Returns the value of thelocationrecord component.message()Returns the value of themessagerecord component.Returns the value of thesuggestionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TestConfigurationIssue
public TestConfigurationIssue(TestConfigurationError error, Path location, String message, String suggestion) Creates an instance of aTestConfigurationIssuerecord class.- Parameters:
error- the value for theerrorrecord componentlocation- the value for thelocationrecord componentmessage- the value for themessagerecord componentsuggestion- the value for thesuggestionrecord 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). -
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
suggestion
Returns the value of thesuggestionrecord component.- Returns:
- the value of the
suggestionrecord component
-