Package gov.nasa.jpl.aerie.json
Record Class JsonParseResult.FailureReason
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.json.JsonParseResult.FailureReason
- Enclosing interface:
JsonParseResult<T>
public static record JsonParseResult.FailureReason(List<Breadcrumb> breadcrumbs, String reason)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionFailureReason(String reason) FailureReason(List<Breadcrumb> breadcrumbs, String reason) Creates an instance of aFailureReasonrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebreadcrumbsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.prependBreadcrumb(Breadcrumb breadcrumb) reason()Returns the value of thereasonrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FailureReason
-
FailureReason
Creates an instance of aFailureReasonrecord class.- Parameters:
breadcrumbs- the value for thebreadcrumbsrecord componentreason- the value for thereasonrecord component
-
-
Method Details
-
prependBreadcrumb
-
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). -
breadcrumbs
Returns the value of thebreadcrumbsrecord component.- Returns:
- the value of the
breadcrumbsrecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-