Record Class WeatherProbe.Policy
java.lang.Object
java.lang.Record
ecmwf.ecpds.master.weather.WeatherProbe.Policy
- All Implemented Interfaces:
Serializable
- Enclosing class:
WeatherProbe
public static record WeatherProbe.Policy(WeatherObservation.Path path, int port, WeatherProbe.Mode mode, int intervalSeconds)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPolicy(WeatherObservation.Path path, int port, WeatherProbe.Mode mode, int intervalSeconds) Creates an instance of aPolicyrecord 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.intReturns the value of theintervalSecondsrecord component.mode()Returns the value of themoderecord component.path()Returns the value of thepathrecord component.intport()Returns the value of theportrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Policy
Creates an instance of aPolicyrecord class.- Parameters:
path- the value for thepathrecord componentport- the value for theportrecord componentmode- the value for themoderecord componentintervalSeconds- the value for theintervalSecondsrecord 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. -
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
port
public int port()Returns the value of theportrecord component.- Returns:
- the value of the
portrecord component
-
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
intervalSeconds
public int intervalSeconds()Returns the value of theintervalSecondsrecord component.- Returns:
- the value of the
intervalSecondsrecord component
-