Record Class WeatherProbes.Status
java.lang.Object
java.lang.Record
ecmwf.ecpds.master.weather.WeatherProbes.Status
- All Implemented Interfaces:
Serializable
- Enclosing class:
WeatherProbes
public static record WeatherProbes.Status(boolean enabled, List<WeatherProbe.Policy> policies, int pending, List<WeatherProbes.Completed> completed, long expired, List<WeatherProbes.Unavailable> unavailable, long rejected)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStatus(boolean enabled, List<WeatherProbe.Policy> policies, int pending, List<WeatherProbes.Completed> completed, long expired, List<WeatherProbes.Unavailable> unavailable, long rejected) Creates an instance of aStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecompletedrecord component.booleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.longexpired()Returns the value of theexpiredrecord component.final inthashCode()Returns a hash code value for this object.intpending()Returns the value of thependingrecord component.policies()Returns the value of thepoliciesrecord component.longrejected()Returns the value of therejectedrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theunavailablerecord component.
-
Constructor Details
-
Status
public Status(boolean enabled, List<WeatherProbe.Policy> policies, int pending, List<WeatherProbes.Completed> completed, long expired, List<WeatherProbes.Unavailable> unavailable, long rejected) Creates an instance of aStatusrecord class.- Parameters:
enabled- the value for theenabledrecord componentpolicies- the value for thepoliciesrecord componentpending- the value for thependingrecord componentcompleted- the value for thecompletedrecord componentexpired- the value for theexpiredrecord componentunavailable- the value for theunavailablerecord componentrejected- the value for therejectedrecord 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. -
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
policies
Returns the value of thepoliciesrecord component.- Returns:
- the value of the
policiesrecord component
-
pending
public int pending()Returns the value of thependingrecord component.- Returns:
- the value of the
pendingrecord component
-
completed
Returns the value of thecompletedrecord component.- Returns:
- the value of the
completedrecord component
-
expired
public long expired()Returns the value of theexpiredrecord component.- Returns:
- the value of the
expiredrecord component
-
rejected
public long rejected()Returns the value of therejectedrecord component.- Returns:
- the value of the
rejectedrecord component
-