- java.lang.Object
-
- swim.structure.Item
-
- swim.structure.Value
-
- swim.structure.Absent
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Absent
absent()
Item
and(Item that)
Value
and(Value that)
Record
appended(Object... items)
Record
appended(Item item)
boolean
booleanValue()
Always returnsfalse
becauseAbsent
behaves like a falsey value.boolean
booleanValue(boolean orElse)
Always returnsfalse
becauseAbsent
behaves like a falsey value.int
compareTo(Item other)
Record
concat(Item that)
Item
conditional(Item thenTerm, Item elseTerm)
Value
conditional(Value thenTerm, Value elseTerm)
<T> Output<T>
debug(Output<T> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.boolean
equals(Object other)
int
hashCode()
boolean
isConstant()
boolean
isDefined()
Always returnsfalse
becauseAbsent
represents an undefined value.boolean
isDefinite()
Always returnsfalse
becauseAbsent
is not a definite value.boolean
isDistinct()
Always returnsfalse
becauseAbsent
is not a distinct value.Iterator<Item>
iterator()
Value
not()
Item
or(Item that)
Value
or(Value that)
Record
prepended(Object... items)
Record
prepended(Item item)
int
typeOrder()
Returns the heterogeneous sort order of thisItem
.Record
unflattened()
Always returns an emptyRecord
becauseAbsent
is not a distinct value.Record
updated(Value key, Value value)
Record
updatedAttr(Text key, Value value)
Record
updatedSlot(Value key, Value value)
-
Methods inherited from class swim.structure.Value
alias, bitwiseAnd, bitwiseAnd, bitwiseNot, bitwiseOr, bitwiseOr, bitwiseXor, bitwiseXor, body, branch, builder, byteValue, byteValue, charValue, charValue, commit, contains, containsKey, containsKey, containsValue, divide, divide, doubleValue, doubleValue, empty, eq, eq, extant, flattened, floatValue, floatValue, fromObject, ge, ge, get, get, getAttr, getAttr, getField, getField, getItem, getSlot, getSlot, gt, gt, head, header, headers, integerValue, integerValue, intValue, intValue, inverse, isAliased, isMutable, key, keyEquals, lambda, le, le, length, longValue, longValue, lt, lt, minus, minus, modulo, modulo, ne, ne, negative, numberValue, numberValue, plus, plus, positive, removed, removed, shortValue, shortValue, stringValue, stringValue, tag, tail, target, times, times, toValue
-
Methods inherited from class swim.structure.Item
appended, appended, appended, appended, appended, appended, cast, cast, coerce, coerce, display, evaluate, evaluate, filter, filter, globalScope, invoke, max, min, precedence, prepended, prepended, prepended, prepended, prepended, prepended, substitute, substitute, toString, updated, updated, updated, updated, updated, updated, updated, updated, updated, updated, updated, updated, updated, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
isDefined
public boolean isDefined()
Always returnsfalse
becauseAbsent
represents an undefined value.
-
isDefinite
public boolean isDefinite()
Always returnsfalse
becauseAbsent
is not a definite value.- Overrides:
isDefinite
in classValue
-
isConstant
public boolean isConstant()
Description copied from class:Item
- Specified by:
isConstant
in classItem
-
isDistinct
public boolean isDistinct()
Always returnsfalse
becauseAbsent
is not a distinct value.- Overrides:
isDistinct
in classValue
-
unflattened
public Record unflattened()
Always returns an emptyRecord
becauseAbsent
is not a distinct value.- Overrides:
unflattened
in classValue
-
updatedAttr
public Record updatedAttr(Text key, Value value)
- Overrides:
updatedAttr
in classItem
-
updatedSlot
public Record updatedSlot(Value key, Value value)
- Overrides:
updatedSlot
in classItem
-
conditional
public Item conditional(Item thenTerm, Item elseTerm)
- Overrides:
conditional
in classValue
-
conditional
public Value conditional(Value thenTerm, Value elseTerm)
- Overrides:
conditional
in classValue
-
booleanValue
public boolean booleanValue()
Always returnsfalse
becauseAbsent
behaves like a falsey value.- Overrides:
booleanValue
in classValue
-
booleanValue
public boolean booleanValue(boolean orElse)
Always returnsfalse
becauseAbsent
behaves like a falsey value.- Overrides:
booleanValue
in classValue
-
typeOrder
public int typeOrder()
Description copied from class:Item
Returns the heterogeneous sort order of thisItem
. Used to impose a total order on the set of all items. When comparing two items of different types, the items order according to theirtypeOrder
.
-
compareTo
public int compareTo(Item other)
- Specified by:
compareTo
in interfaceComparable<Item>
- Specified by:
compareTo
in classItem
-
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 tooutput
.
-
absent
public static Absent absent()
-
-