Record Class WeatherDiscoveryStore.Result
java.lang.Object
java.lang.Record
ecmwf.common.database.WeatherDiscoveryStore.Result
- Enclosing class:
WeatherDiscoveryStore
public static record WeatherDiscoveryStore.Result(Map<String, WeatherDiscoveryStore.Signal> hosts, int rows, int pages, boolean partial, WeatherDiscoveryStore.Progress nextCursor)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionResult(Map<String, WeatherDiscoveryStore.Signal> hosts, int rows, int pages, boolean partial, WeatherDiscoveryStore.Progress nextCursor) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.hosts()Returns the value of thehostsrecord component.Returns the value of thenextCursorrecord component.intpages()Returns the value of thepagesrecord component.booleanpartial()Returns the value of thepartialrecord component.introws()Returns the value of therowsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Result
public Result(Map<String, WeatherDiscoveryStore.Signal> hosts, int rows, int pages, boolean partial, WeatherDiscoveryStore.Progress nextCursor) Creates an instance of aResultrecord class.- Parameters:
hosts- the value for thehostsrecord componentrows- the value for therowsrecord componentpages- the value for thepagesrecord componentpartial- the value for thepartialrecord componentnextCursor- the value for thenextCursorrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
hosts
Returns the value of thehostsrecord component.- Returns:
- the value of the
hostsrecord component
-
rows
public int rows()Returns the value of therowsrecord component.- Returns:
- the value of the
rowsrecord component
-
pages
public int pages()Returns the value of thepagesrecord component.- Returns:
- the value of the
pagesrecord component
-
partial
public boolean partial()Returns the value of thepartialrecord component.- Returns:
- the value of the
partialrecord component
-
nextCursor
Returns the value of thenextCursorrecord component.- Returns:
- the value of the
nextCursorrecord component
-