Record Class PreflightResult.Failure
java.lang.Object
java.lang.Record
network.ike.plugin.ws.preflight.PreflightResult.Failure
- Enclosing class:
PreflightResult
public static record PreflightResult.Failure(PreflightCondition condition, String remediation)
extends Record
A single failing condition with the remediation it emitted.
-
Constructor Summary
ConstructorsConstructorDescriptionFailure(PreflightCondition condition, String remediation) Creates an instance of aFailurerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconditionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theremediationrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Failure
Creates an instance of aFailurerecord class.- Parameters:
condition- the value for theconditionrecord componentremediation- the value for theremediationrecord 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). -
condition
Returns the value of theconditionrecord component.- Returns:
- the value of the
conditionrecord component
-
remediation
Returns the value of theremediationrecord component.- Returns:
- the value of the
remediationrecord component
-