Class Absent

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

public final class Absent extends Value
  • Method Details

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

      public Record updated(Value key, Value value)
      Overrides:
      updated in class Item
    • updatedAttr

      public Record updatedAttr(Text key, Value value)
      Overrides:
      updatedAttr in class Item
    • updatedSlot

      public Record updatedSlot(Value key, Value value)
      Overrides:
      updatedSlot in class Item
    • appended

      public Record appended(Item item)
      Overrides:
      appended in class Item
    • appended

      public Record appended(Object... items)
      Overrides:
      appended in class Item
    • prepended

      public Record prepended(Item item)
      Overrides:
      prepended in class Item
    • prepended

      public Record prepended(Object... items)
      Overrides:
      prepended in class Item
    • concat

      public Record concat(Item that)
      Overrides:
      concat in class Item
    • 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
    • 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
    • iterator

      public Iterator<Item> iterator()
      Specified by:
      iterator in interface Iterable<Item>
      Overrides:
      iterator in class Item
    • 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.
    • absent

      public static Absent absent()