Record Class WeatherViewer
java.lang.Object
java.lang.Record
ecmwf.ecpds.master.weather.WeatherViewer
- All Implemented Interfaces:
Serializable
public record WeatherViewer(boolean enabled, long measuredAt, List<WeatherViewer.Path> paths)
extends Record
implements Serializable
Deliberately excludes raw diagnostics, transfer IDs, endpoint addresses and administrative errors.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionWeatherViewer(boolean enabled, long measuredAt, List<WeatherViewer.Path> paths) Creates an instance of aWeatherViewerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of themeasuredAtrecord component.paths()Returns the value of thepathsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WeatherViewer
Creates an instance of aWeatherViewerrecord class.- Parameters:
enabled- the value for theenabledrecord componentmeasuredAt- the value for themeasuredAtrecord componentpaths- the value for thepathsrecord 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. -
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
measuredAt
public long measuredAt()Returns the value of themeasuredAtrecord component.- Returns:
- the value of the
measuredAtrecord component
-
paths
Returns the value of thepathsrecord component.- Returns:
- the value of the
pathsrecord component
-