Package com.framed.cdss
Record Class FiringRule
java.lang.Object
java.lang.Record
com.framed.cdss.FiringRule
- Record Components:
type- The condition category.n- Minimum required delta forRuleType.AT_LEAST; ignored otherwise. used when type == AT_LEASTvalue- Expected latest value forRuleType.REQUIRE_VALUE; ignored otherwise. used when type == REQUIRE_VALUE
Structured representation of a parsed channel condition. Instances are created via factory
methods
any(), atLeast(long), and requireValue(String).
- For
RuleType.AT_LEAST,nholds the minimum required delta (≥ 1). - For
RuleType.REQUIRE_VALUE,valueholds the expected latest value string.
-
Constructor Summary
ConstructorsConstructorDescriptionFiringRule(RuleType type, long n, String value) Creates an instance of aFiringRulerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longn()Returns the value of thenrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
n
public long n()Returns the value of thenrecord component.- Returns:
- the value of the
nrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-