Record Class NuggetDiscovery.Resolution
java.lang.Object
java.lang.Record
org.j7m.middleware.operations.api.NuggetDiscovery.Resolution
- Record Components:
status- resolution statusrecords- selected recordssafeReason- safe reason codeerrorCode- normalized safe error coderesolvedAt- resolution timestampwarnings- bounded safe warnings
- Enclosing class:
NuggetDiscovery
public static record NuggetDiscovery.Resolution(NuggetDiscovery.ResolutionStatus status, List<NuggetDiscovery.Record> records, String safeReason, MiddlewareErrorCode errorCode, Instant resolvedAt, List<String> warnings)
extends Record
Selector resolution result.
-
Constructor Summary
ConstructorsConstructorDescriptionResolution(NuggetDiscovery.ResolutionStatus status, List<NuggetDiscovery.Record> records, String safeReason, MiddlewareErrorCode errorCode, Instant resolvedAt, List<String> warnings) Creates an immutable resolution result. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorCoderecord component.final inthashCode()Returns a hash code value for this object.records()Returns the value of therecordsrecord component.Returns the value of theresolvedAtrecord component.Returns the value of thesafeReasonrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.warnings()Returns the value of thewarningsrecord component.
-
Constructor Details
-
Resolution
public Resolution(NuggetDiscovery.ResolutionStatus status, List<NuggetDiscovery.Record> records, String safeReason, MiddlewareErrorCode errorCode, Instant resolvedAt, List<String> warnings) Creates an immutable resolution result.
-
-
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). -
status
-
records
-
safeReason
Returns the value of thesafeReasonrecord component.- Returns:
- the value of the
safeReasonrecord component
-
errorCode
-
resolvedAt
Returns the value of theresolvedAtrecord component.- Returns:
- the value of the
resolvedAtrecord component
-
warnings
-