Class Absent

    • Method Detail

      • isDefined

        public boolean isDefined()
        Always returns false because Absent represents an undefined value.
        Overrides:
        isDefined in class Value
      • isDefinite

        public boolean isDefinite()
        Always returns false because Absent 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
      • isDistinct

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

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

        public boolean booleanValue()
        Always returns false because Absent behaves like a falsey value.
        Overrides:
        booleanValue in class Value
      • booleanValue

        public boolean booleanValue​(boolean orElse)
        Always returns false because Absent behaves like a falsey 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
      • absent

        public static Absent absent()