Record Class Variable
java.lang.Object
java.lang.Record
io.openems.edge.core.appmanager.formly.expression.Variable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasArray()
Uses this variable as an array.final boolean
Indicates whether some other object is "equal to" this one.greaterThan
(Variable other) greaterThanEqual
(Variable other) final int
hashCode()
Returns a hash code value for this object.isNull()
Checks if the current value of the variable is null.lowerThanEqual
(Variable other) notNull()
Checks if the current value of the variable is not null.final String
toString()
Returns a string representation of this record class.variable()
Returns the value of thevariable
record component.
-
Constructor Details
-
Variable
Creates an instance of aVariable
record class.- Parameters:
variable
- the value for thevariable
record component
-
-
Method Details
-
equal
- Parameters:
other
- theVariable
to check against- Returns:
- the created
BooleanExpression
-
notEqual
- Parameters:
other
- theVariable
to check against- Returns:
- the created
BooleanExpression
-
greaterThan
- Parameters:
other
- theVariable
to check against- Returns:
- the created
BooleanExpression
-
greaterThanEqual
Non-static way to check if the currentVariable
value is greater than equal the givenVariable
value.- Parameters:
other
- theVariable
to check against- Returns:
- the created
BooleanExpression
-
lowerThan
- Parameters:
other
- theVariable
to check against- Returns:
- the created
BooleanExpression
-
lowerThanEqual
- Parameters:
other
- theVariable
to check against- Returns:
- the created
BooleanExpression
-
asArray
Uses this variable as an array.- Returns:
- the
ArrayExpression
of this variable
-
notNull
Checks if the current value of the variable is not null.- Returns:
- the created
BooleanExpression
-
isNull
Checks if the current value of the variable is null.- 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)
. -
variable
Returns the value of thevariable
record component.- Returns:
- the value of the
variable
record component
-