Class NumberExtensions

java.lang.Object
org.openhab.core.model.script.lib.NumberExtensions

public class NumberExtensions extends Object
This class contains all kinds of extensions to be used by scripts and not provided by Xbase. These include things like number handling and comparisons.
Author:
Kai Kreuzer - Initial contribution
  • Field Details

    • NULL_DEFINITION

      public static final BigDecimal NULL_DEFINITION
      It is the definition of Java null pointer for the rules language. Actually its value is 0 (rules variables are number) but we can use the null pointer and throws an NPE when a null value is used. I think this concept should not exist for those who writes the rules.
  • Constructor Details

    • NumberExtensions

      public NumberExtensions()
  • Method Details