Record Class Variable

java.lang.Object
java.lang.Record
io.openems.edge.core.appmanager.formly.expression.Variable

public record Variable(String variable) extends Record
  • Constructor Details

    • Variable

      public Variable(String variable)
      Creates an instance of a Variable record class.
      Parameters:
      variable - the value for the variable record component
  • Method Details

    • equal

      public BooleanExpression equal(Variable other)
      Non-static way to check if the current Variable value is equal the given Variable value.
      Parameters:
      other - the Variable to check against
      Returns:
      the created BooleanExpression
    • notEqual

      public BooleanExpression notEqual(Variable other)
      Non-static way to check if the current Variable value is not equal the given Variable value.
      Parameters:
      other - the Variable to check against
      Returns:
      the created BooleanExpression
    • greaterThan

      public BooleanExpression greaterThan(Variable other)
      Non-static way to check if the current Variable value is greater than the given Variable value.
      Parameters:
      other - the Variable to check against
      Returns:
      the created BooleanExpression
    • greaterThanEqual

      public BooleanExpression greaterThanEqual(Variable other)
      Non-static way to check if the current Variable value is greater than equal the given Variable value.
      Parameters:
      other - the Variable to check against
      Returns:
      the created BooleanExpression
    • lowerThan

      public BooleanExpression lowerThan(Variable other)
      Non-static way to check if the current Variable value is lower than the given Variable value.
      Parameters:
      other - the Variable to check against
      Returns:
      the created BooleanExpression
    • lowerThanEqual

      public BooleanExpression lowerThanEqual(Variable other)
      Non-static way to check if the current Variable value is lower than equal the given Variable value.
      Parameters:
      other - the Variable to check against
      Returns:
      the created BooleanExpression
    • asArray

      public ArrayExpression asArray()
      Uses this variable as an array.
      Returns:
      the ArrayExpression of this variable
    • notNull

      public BooleanExpression notNull()
      Checks if the current value of the variable is not null.
      Returns:
      the created BooleanExpression
    • isNull

      public BooleanExpression isNull()
      Checks if the current value of the variable is null.
      Returns:
      the created BooleanExpression
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • variable

      public String variable()
      Returns the value of the variable record component.
      Returns:
      the value of the variable record component