Class BoolHelper

java.lang.Object
org.kink_lang.kink.BoolHelper

public class BoolHelper extends Object
The helper for bool vals.
  • Field Details

    • trueVal

      public final Val trueVal
      Kink true.
    • falseVal

      public final Val falseVal
      Kink false.
  • Method Details

    • of

      public Val of(boolean bl)
      Returns a bool val from the Java boolean.
      Parameters:
      bl - the Java boolean.
      Returns:
      a bool val.
    • isBool

      public boolean isBool(Val val)
      Returns true if the val is a bool val.
      Parameters:
      val - the val.
      Returns:
      true if the val is a bool val.