Class Bool

All Implemented Interfaces:
Comparable<Item>, Iterable<Item>, Debug, Display

public final class Bool extends Value
  • Method Details

    • isDefinite

      public boolean isDefinite()
      Description copied from class: Value
      Returns true if this Value is not one of: an empty Record, False, Extant, or Absent.
      Overrides:
      isDefinite in class Value
    • isConstant

      public boolean isConstant()
      Description copied from class: Item
      Returns true if this Item always evaluates to the same Item.
      Specified by:
      isConstant in class Item
    • stringValue

      public String stringValue()
      Description copied from class: Value
      Converts this Value into a String value, if possible.
      Overrides:
      stringValue in class Value
    • booleanValue

      public boolean booleanValue()
      Description copied from class: Value
      Converts this Value into a primitive boolean value, if possible.
      Overrides:
      booleanValue in class Value
    • booleanValue

      public boolean booleanValue(boolean orElse)
      Description copied from class: Value
      Converts this Value into a primitive boolean value, if possible; otherwise returns orElse if this Value can't be converted into a primitive boolean value.
      Overrides:
      booleanValue in class Value
    • conditional

      public Item conditional(Item thenTerm, Item elseTerm)
      Overrides:
      conditional in class Value
    • conditional

      public Value conditional(Value thenTerm, Value elseTerm)
      Overrides:
      conditional in class Value
    • or

      public Item or(Item that)
      Overrides:
      or in class Value
    • or

      public Value or(Value that)
      Overrides:
      or in class Value
    • and

      public Item and(Item that)
      Overrides:
      and in class Value
    • and

      public Value and(Value that)
      Overrides:
      and in class Value
    • not

      public Value not()
      Overrides:
      not in class Value
    • typeOrder

      public int typeOrder()
      Description copied from class: Item
      Returns the heterogeneous sort order of this Item. Used to impose a total order on the set of all items. When comparing two items of different types, the items order according to their typeOrder.
      Specified by:
      typeOrder in class Item
    • compareTo

      public int compareTo(Item other)
      Specified by:
      compareTo in interface Comparable<Item>
      Specified by:
      compareTo in class Item
    • equals

      public boolean equals(Object other)
      Specified by:
      equals in class Item
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class Item
    • debug

      public <T> Output<T> debug(Output<T> output)
      Description copied from interface: Debug
      Writes a developer readable, debug-formatted string representation of this object to output.
      Specified by:
      debug in interface Debug
      Specified by:
      debug in class Item
      Returns:
      the continuation of the output.
    • display

      public <T> Output<T> display(Output<T> output)
      Description copied from interface: Display
      Writes a human readable, display-formatted string representation of this object to output.
      Specified by:
      display in interface Display
      Overrides:
      display in class Item
      Returns:
      the continuation of the output.
    • from

      public static Bool from(boolean value)