Record Class WeatherSelection
java.lang.Object
java.lang.Record
ecmwf.ecpds.master.weather.WeatherSelection
- All Implemented Interfaces:
Serializable
public record WeatherSelection(UUID masterEpoch, long revision, boolean enabled, Set<WeatherObservation.Path> paths)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionWeatherSelection(UUID masterEpoch, long revision, boolean enabled, Set<WeatherObservation.Path> paths) Creates an instance of aWeatherSelectionrecord 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.Returns the value of themasterEpochrecord component.paths()Returns the value of thepathsrecord component.longrevision()Returns the value of therevisionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WeatherSelection
public WeatherSelection(UUID masterEpoch, long revision, boolean enabled, Set<WeatherObservation.Path> paths) Creates an instance of aWeatherSelectionrecord class.- Parameters:
masterEpoch- the value for themasterEpochrecord componentrevision- the value for therevisionrecord componentenabled- the value for theenabledrecord 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. -
masterEpoch
Returns the value of themasterEpochrecord component.- Returns:
- the value of the
masterEpochrecord component
-
revision
public long revision()Returns the value of therevisionrecord component.- Returns:
- the value of the
revisionrecord component
-
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
paths
Returns the value of thepathsrecord component.- Returns:
- the value of the
pathsrecord component
-