Record Class WeatherAdministration.Configuration
java.lang.Object
java.lang.Record
ecmwf.ecpds.master.weather.WeatherAdministration.Configuration
- Enclosing class:
WeatherAdministration
public static record WeatherAdministration.Configuration(int schemaVersion, long revision, Set<WeatherObservation.Path> paths, String updatedBy, long updatedAt, boolean enabled)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionConfiguration(int schemaVersion, long revision, Set<WeatherObservation.Path> paths, String updatedBy, long updatedAt) Configuration(int schemaVersion, long revision, Set<WeatherObservation.Path> paths, String updatedBy, long updatedAt, boolean enabled) Creates an instance of aConfigurationrecord 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.paths()Returns the value of thepathsrecord component.longrevision()Returns the value of therevisionrecord component.intReturns the value of theschemaVersionrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of theupdatedAtrecord component.Returns the value of theupdatedByrecord component.
-
Constructor Details
-
Configuration
public Configuration(int schemaVersion, long revision, Set<WeatherObservation.Path> paths, String updatedBy, long updatedAt) -
Configuration
public Configuration(int schemaVersion, long revision, Set<WeatherObservation.Path> paths, String updatedBy, long updatedAt, boolean enabled) Creates an instance of aConfigurationrecord class.- Parameters:
schemaVersion- the value for theschemaVersionrecord componentrevision- the value for therevisionrecord componentpaths- the value for thepathsrecord componentupdatedBy- the value for theupdatedByrecord componentupdatedAt- the value for theupdatedAtrecord componentenabled- the value for theenabledrecord 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. -
schemaVersion
public int schemaVersion()Returns the value of theschemaVersionrecord component.- Returns:
- the value of the
schemaVersionrecord component
-
revision
public long revision()Returns the value of therevisionrecord component.- Returns:
- the value of the
revisionrecord component
-
paths
Returns the value of thepathsrecord component.- Returns:
- the value of the
pathsrecord component
-
updatedBy
Returns the value of theupdatedByrecord component.- Returns:
- the value of the
updatedByrecord component
-
updatedAt
public long updatedAt()Returns the value of theupdatedAtrecord component.- Returns:
- the value of the
updatedAtrecord component
-
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-