Class Bool

    • Method Detail

      • 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
      • 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
      • equals

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

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

        public void debug​(Output<?> 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
      • display

        public void display​(Output<?> 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
      • from

        public static Bool from​(boolean value)