Record Class BooleanExpression
java.lang.Object
java.lang.Record
io.openems.edge.core.appmanager.formly.expression.BooleanExpression
-
Constructor Summary
ConstructorDescriptionBooleanExpression
(String expression) Creates an instance of aBooleanExpression
record class. -
Method Summary
Modifier and TypeMethodDescriptionand
(BooleanExpression other) Combines the currentBooleanExpression
with an and with the givenBooleanExpression
.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theexpression
record component.final int
hashCode()
Returns a hash code value for this object.static BooleanExpression
Creates aBooleanExpression
which checks the firstVariable
against the secondVariable
with the givenOperator
.or
(BooleanExpression other) Combines the currentBooleanExpression
with an or with the givenBooleanExpression
.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
BooleanExpression
Creates an instance of aBooleanExpression
record class.- Parameters:
expression
- the value for theexpression
record component
-
-
Method Details
-
of
Creates aBooleanExpression
which checks the firstVariable
against the secondVariable
with the givenOperator
.- Parameters:
v1
- the firstVariable
op
- theOperator
to use while checkingv2
- the secondVariable
- Returns:
- the created
BooleanExpression
-
or
Combines the currentBooleanExpression
with an or with the givenBooleanExpression
.- Parameters:
other
- the otherBooleanExpression
to combine- Returns:
- the created
BooleanExpression
-
and
Combines the currentBooleanExpression
with an and with the givenBooleanExpression
.- Parameters:
other
- the otherBooleanExpression
to combine- Returns:
- the created
BooleanExpression
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
expression
Returns the value of theexpression
record component.- Returns:
- the value of the
expression
record component
-