Class Extant

    • Method Detail

      • isDefined

        public boolean isDefined()
        Always returns true because Extant is a defined value.
        Overrides:
        isDefined in class Value
      • isDistinct

        public boolean isDistinct()
        Always returns false because Extant is not a distinct value.
        Overrides:
        isDistinct in class Value
      • isDefinite

        public boolean isDefinite()
        Always returns false because Extant is not a definite value.
        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
      • unflattened

        public Record unflattened()
        Always returns an empty Record because Extant is not a distinct value.
        Overrides:
        unflattened in class Value
      • stringValue

        public String stringValue()
        Always returns the empty String because Extant behaves like an empty Record, which converts to a String by concatenating the string values of all its members, if all its members convert to string values.
        Overrides:
        stringValue in class Value
      • stringValue

        public String stringValue​(String orElse)
        Always returns the empty String because Extant behaves like an empty Record, which converts to a String by concatenating the string values of all its members, if all its members convert to string values.
        Overrides:
        stringValue in class Value
      • booleanValue

        public boolean booleanValue()
        Always returns true because Extant behaves like a truthy value.
        Overrides:
        booleanValue in class Value
      • booleanValue

        public boolean booleanValue​(boolean orElse)
        Always returns true because Extant behaves like a truthy 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 <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.
      • extant

        public static Extant extant()