Record Class ScenarioValidation.Issue
java.lang.Object
java.lang.Record
dev.itsharshxd.zentrix.api.scenario.ScenarioValidation.Issue
- Record Components:
kind- what was foundseverity- how badly it affects the combinationscenarioId- the scenario the finding is about- the other scenarios or plugins involved, if anymessage- a human-readable explanation
- Enclosing class:
ScenarioValidation
public static record ScenarioValidation.Issue(@NotNull ScenarioValidation.Kind kind, @NotNull ScenarioValidation.Severity severity, @NotNull String scenarioId, @NotNull Set<String> related, @NotNull String message)
extends Record
One finding.
-
Constructor Summary
ConstructorsConstructorDescriptionIssue(@NotNull ScenarioValidation.Kind kind, @NotNull ScenarioValidation.Severity severity, @NotNull String scenarioId, @NotNull Set<String> related, @NotNull String message) Creates an instance of aIssuerecord 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.@NotNull ScenarioValidation.Kindkind()Returns the value of thekindrecord component.@NotNull Stringmessage()Returns the value of themessagerecord component.related()Returns the value of therelatedrecord component.@NotNull StringReturns the value of thescenarioIdrecord component.@NotNull ScenarioValidation.Severityseverity()Returns the value of theseverityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Issue
public Issue(@NotNull @NotNull ScenarioValidation.Kind kind, @NotNull @NotNull ScenarioValidation.Severity severity, @NotNull @NotNull String scenarioId, @NotNull @NotNull Set<String> related, @NotNull @NotNull String message) Creates an instance of aIssuerecord class.- Parameters:
kind- the value for thekindrecord componentseverity- the value for theseverityrecord componentscenarioId- the value for thescenarioIdrecord componentrelated- the value for therelatedrecord componentmessage- the value for themessagerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
severity
Returns the value of theseverityrecord component.- Returns:
- the value of the
severityrecord component
-
scenarioId
Returns the value of thescenarioIdrecord component.- Returns:
- the value of the
scenarioIdrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-