Record Class ProviderOutcome
java.lang.Object
java.lang.Record
ai.redouble.demo.ProviderOutcome
public record ProviderOutcome(String key, String status, Integer listed, Integer unknown, String detail)
extends Record
One queried provider's outcome, readable at a glance: LISTED with a count, LISTING_FAILED with
the reason, LISTING_UNSUPPORTED (pinged blind).
unknown is how many of the listed
models got NO entry: the catalog held no ancestor to inherit a shape from, and the discovery
never invents grades, prices or limits - a person writes those entries.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondetail()Returns the value of thedetailrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.listed()Returns the value of thelistedrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.unknown()Returns the value of theunknownrecord component.
-
Constructor Details
-
ProviderOutcome
Creates an instance of aProviderOutcomerecord class.- Parameters:
key- the value for thekeyrecord componentstatus- the value for thestatusrecord componentlisted- the value for thelistedrecord componentunknown- the value for theunknownrecord componentdetail- the value for thedetailrecord 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). -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
listed
Returns the value of thelistedrecord component.- Returns:
- the value of the
listedrecord component
-
unknown
Returns the value of theunknownrecord component.- Returns:
- the value of the
unknownrecord component
-
detail
Returns the value of thedetailrecord component.- Returns:
- the value of the
detailrecord component
-