Record Class WeatherNegotiation.Lease
java.lang.Object
java.lang.Record
ecmwf.ecpds.master.weather.WeatherNegotiation.Lease
- Enclosing class:
WeatherNegotiation
public static record WeatherNegotiation.Lease(WeatherCapabilities capabilities, long receivedAtNanos, long remainingNanos, long estimatedClockOffsetMs, long roundTripMs)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionLease(WeatherCapabilities capabilities, long receivedAtNanos, long remainingNanos, long estimatedClockOffsetMs, long roundTripMs) Creates an instance of aLeaserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecapabilitiesrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theestimatedClockOffsetMsrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of thereceivedAtNanosrecord component.longReturns the value of theremainingNanosrecord component.longReturns the value of theroundTripMsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Lease
public Lease(WeatherCapabilities capabilities, long receivedAtNanos, long remainingNanos, long estimatedClockOffsetMs, long roundTripMs) Creates an instance of aLeaserecord class.- Parameters:
capabilities- the value for thecapabilitiesrecord componentreceivedAtNanos- the value for thereceivedAtNanosrecord componentremainingNanos- the value for theremainingNanosrecord componentestimatedClockOffsetMs- the value for theestimatedClockOffsetMsrecord componentroundTripMs- the value for theroundTripMsrecord 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. -
capabilities
Returns the value of thecapabilitiesrecord component.- Returns:
- the value of the
capabilitiesrecord component
-
receivedAtNanos
public long receivedAtNanos()Returns the value of thereceivedAtNanosrecord component.- Returns:
- the value of the
receivedAtNanosrecord component
-
remainingNanos
public long remainingNanos()Returns the value of theremainingNanosrecord component.- Returns:
- the value of the
remainingNanosrecord component
-
estimatedClockOffsetMs
public long estimatedClockOffsetMs()Returns the value of theestimatedClockOffsetMsrecord component.- Returns:
- the value of the
estimatedClockOffsetMsrecord component
-
roundTripMs
public long roundTripMs()Returns the value of theroundTripMsrecord component.- Returns:
- the value of the
roundTripMsrecord component
-