Record Class StorageRetention.Decision
java.lang.Object
java.lang.Record
ecmwf.ecpds.master.storage.StorageRetention.Decision
- Enclosing class:
StorageRetention
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaneligible()Returns the value of theeligiblerecord component.longReturns the value of theeligibleAtrecord component.booleanenforce()Returns the value of theenforcerecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theguaranteedUntilrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theoriginalsrecord component.policies()Returns the value of thepoliciesrecord component.reason()Returns the value of thereasonrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Decision
public Decision(boolean eligible, boolean enforce, long eligibleAt, long guaranteedUntil, Set<String> policies, Set<String> originals, String reason) Creates an instance of aDecisionrecord class.- Parameters:
eligible- the value for theeligiblerecord componentenforce- the value for theenforcerecord componenteligibleAt- the value for theeligibleAtrecord componentguaranteedUntil- the value for theguaranteedUntilrecord componentpolicies- the value for thepoliciesrecord componentoriginals- the value for theoriginalsrecord componentreason- the value for thereasonrecord 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. -
eligible
public boolean eligible()Returns the value of theeligiblerecord component.- Returns:
- the value of the
eligiblerecord component
-
enforce
public boolean enforce()Returns the value of theenforcerecord component.- Returns:
- the value of the
enforcerecord component
-
eligibleAt
public long eligibleAt()Returns the value of theeligibleAtrecord component.- Returns:
- the value of the
eligibleAtrecord component
-
guaranteedUntil
public long guaranteedUntil()Returns the value of theguaranteedUntilrecord component.- Returns:
- the value of the
guaranteedUntilrecord component
-
policies
-
originals
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-