Record Class PollOutcome.Failed
java.lang.Object
java.lang.Record
com.irurueta.authserver.serviceclient.device.PollOutcome.Failed
- Record Components:
error- the OAuth error code.description- the optional human-readable description, ornull.
- All Implemented Interfaces:
PollOutcome
- Enclosing interface:
PollOutcome
public static record PollOutcome.Failed(String error, String description)
extends Record
implements PollOutcome
Any other error (
access_denied, expired_token, ...): the flow is over.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.irurueta.authserver.serviceclient.device.PollOutcome
PollOutcome.Failed, PollOutcome.Granted, PollOutcome.Pending, PollOutcome.SlowDown -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thedescriptionrecord component.private final StringThe field for theerrorrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final 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.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
error
The field for theerrorrecord component. -
description
The field for thedescriptionrecord component.
-
-
Constructor Details
-
Failed
Creates an instance of aFailedrecord class.- Parameters:
error- the value for theerrorrecord componentdescription- the value for thedescriptionrecord 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). -
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-