Record Class WeatherDiscoveryStore.Signal
java.lang.Object
java.lang.Record
ecmwf.common.database.WeatherDiscoveryStore.Signal
- Enclosing class:
WeatherDiscoveryStore
public static record WeatherDiscoveryStore.Signal(long activity, long bytes, long trouble, long latest)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSignal(long activity, long bytes, long trouble, long latest) Creates an instance of aSignalrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongactivity()Returns the value of theactivityrecord component.longbytes()Returns the value of thebytesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longlatest()Returns the value of thelatestrecord component.final StringtoString()Returns a string representation of this record class.longtrouble()Returns the value of thetroublerecord component.
-
Constructor Details
-
Signal
public Signal(long activity, long bytes, long trouble, long latest) Creates an instance of aSignalrecord class.- Parameters:
activity- the value for theactivityrecord componentbytes- the value for thebytesrecord componenttrouble- the value for thetroublerecord componentlatest- the value for thelatestrecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
activity
public long activity()Returns the value of theactivityrecord component.- Returns:
- the value of the
activityrecord component
-
bytes
public long bytes()Returns the value of thebytesrecord component.- Returns:
- the value of the
bytesrecord component
-
trouble
public long trouble()Returns the value of thetroublerecord component.- Returns:
- the value of the
troublerecord component
-
latest
public long latest()Returns the value of thelatestrecord component.- Returns:
- the value of the
latestrecord component
-