java.lang.Object
swim.structure.Item
swim.structure.Value
swim.structure.Absent
-
Method Summary
Modifier and TypeMethodDescriptionstatic Absent
absent()
boolean
Always returnsfalse
becauseAbsent
behaves like a falsey value.boolean
booleanValue
(boolean orElse) Always returnsfalse
becauseAbsent
behaves like a falsey value.int
conditional
(Item thenTerm, Item elseTerm) conditional
(Value thenTerm, Value elseTerm) <T> Output<T>
Writes a developer readable, debug-formatted string representation of this object tooutput
.boolean
int
hashCode()
boolean
boolean
Always returnsfalse
becauseAbsent
represents an undefined value.boolean
Always returnsfalse
becauseAbsent
is not a definite value.boolean
Always returnsfalse
becauseAbsent
is not a distinct value.iterator()
not()
int
Returns the heterogeneous sort order of thisItem
.Always returns an emptyRecord
becauseAbsent
is not a distinct value.updatedAttr
(Text key, Value value) 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 Details
-
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
Always returns an emptyRecord
becauseAbsent
is not a distinct value.- Overrides:
unflattened
in classValue
-
updated
-
updatedAttr
- Overrides:
updatedAttr
in classItem
-
updatedSlot
- Overrides:
updatedSlot
in classItem
-
appended
-
appended
-
prepended
-
prepended
-
concat
-
conditional
- Overrides:
conditional
in classValue
-
conditional
- Overrides:
conditional
in classValue
-
or
-
or
-
and
-
and
-
not
-
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
-
iterator
-
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
- Specified by:
compareTo
in interfaceComparable<Item>
- Specified by:
compareTo
in classItem
-
equals
-
hashCode
public int hashCode() -
debug
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
. -
absent
-