Record Class NuggetDiscovery.Result
java.lang.Object
java.lang.Record
org.j7m.middleware.operations.api.NuggetDiscovery.Result
- Record Components:
records- visible recordsreturned- returned record counttotalAvailable- visible total before the applied limitcollectedAt- collection timestamppartial- whether any source failed safelywarnings- bounded safe warnings
- Enclosing class:
NuggetDiscovery
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecollectedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanpartial()Returns the value of thepartialrecord component.records()Returns the value of therecordsrecord component.intreturned()Returns the value of thereturnedrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalAvailablerecord component.warnings()Returns the value of thewarningsrecord component.
-
Constructor Details
-
Result
public Result(List<NuggetDiscovery.Record> records, int returned, int totalAvailable, Instant collectedAt, boolean partial, List<String> warnings) Creates an immutable discovery 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
records
-
returned
-
totalAvailable
public int totalAvailable()Returns the value of thetotalAvailablerecord component.- Returns:
- the value of the
totalAvailablerecord component
-
collectedAt
Returns the value of thecollectedAtrecord component.- Returns:
- the value of the
collectedAtrecord component
-
partial
-
warnings
-