Record Class WeatherReceipt
java.lang.Object
java.lang.Record
ecmwf.ecpds.master.weather.WeatherReceipt
- All Implemented Interfaces:
Serializable
public record WeatherReceipt(UUID eventId, UUID masterEpoch, long receivedAt, WeatherReceipt.Disposition disposition)
extends Record
implements Serializable
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionWeatherReceipt(UUID eventId, UUID masterEpoch, long receivedAt, WeatherReceipt.Disposition disposition) Creates an instance of aWeatherReceiptrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedispositionrecord component.final booleanIndicates whether some other object is "equal to" this one.eventId()Returns the value of theeventIdrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themasterEpochrecord component.longReturns the value of thereceivedAtrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WeatherReceipt
public WeatherReceipt(UUID eventId, UUID masterEpoch, long receivedAt, WeatherReceipt.Disposition disposition) Creates an instance of aWeatherReceiptrecord class.- Parameters:
eventId- the value for theeventIdrecord componentmasterEpoch- the value for themasterEpochrecord componentreceivedAt- the value for thereceivedAtrecord componentdisposition- the value for thedispositionrecord 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. -
eventId
Returns the value of theeventIdrecord component.- Returns:
- the value of the
eventIdrecord component
-
masterEpoch
Returns the value of themasterEpochrecord component.- Returns:
- the value of the
masterEpochrecord component
-
receivedAt
public long receivedAt()Returns the value of thereceivedAtrecord component.- Returns:
- the value of the
receivedAtrecord component
-
disposition
Returns the value of thedispositionrecord component.- Returns:
- the value of the
dispositionrecord component
-