- 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 Absentabsent()Itemand(Item that)Valueand(Value that)Recordappended(Object... items)Recordappended(Item item)booleanbooleanValue()Always returnsfalsebecauseAbsentbehaves like a falsey value.booleanbooleanValue(boolean orElse)Always returnsfalsebecauseAbsentbehaves like a falsey value.intcompareTo(Item other)Recordconcat(Item that)Itemconditional(Item thenTerm, Item elseTerm)Valueconditional(Value thenTerm, Value elseTerm)voiddebug(Output<?> output)Writes a developer readable, debug-formatted string representation of this object tooutput.booleanequals(Object other)inthashCode()booleanisConstant()booleanisDefined()Always returnsfalsebecauseAbsentrepresents an undefined value.booleanisDefinite()Always returnsfalsebecauseAbsentis not a definite value.booleanisDistinct()Always returnsfalsebecauseAbsentis not a distinct value.Iterator<Item>iterator()Valuenot()Itemor(Item that)Valueor(Value that)Recordprepended(Object... items)Recordprepended(Item item)inttypeOrder()Returns the heterogeneous sort order of thisItem.Recordunflattened()Always returns an emptyRecordbecauseAbsentis not a distinct value.Recordupdated(Value key, Value value)RecordupdatedAttr(Text key, Value value)RecordupdatedSlot(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 returnsfalsebecauseAbsentrepresents an undefined value.
-
isDefinite
public boolean isDefinite()
Always returnsfalsebecauseAbsentis not a definite value.- Overrides:
isDefinitein classValue
-
isConstant
public boolean isConstant()
Description copied from class:Item- Specified by:
isConstantin classItem
-
isDistinct
public boolean isDistinct()
Always returnsfalsebecauseAbsentis not a distinct value.- Overrides:
isDistinctin classValue
-
unflattened
public Record unflattened()
Always returns an emptyRecordbecauseAbsentis not a distinct value.- Overrides:
unflattenedin classValue
-
updatedAttr
public Record updatedAttr(Text key, Value value)
- Overrides:
updatedAttrin classItem
-
updatedSlot
public Record updatedSlot(Value key, Value value)
- Overrides:
updatedSlotin classItem
-
conditional
public Item conditional(Item thenTerm, Item elseTerm)
- Overrides:
conditionalin classValue
-
conditional
public Value conditional(Value thenTerm, Value elseTerm)
- Overrides:
conditionalin classValue
-
booleanValue
public boolean booleanValue()
Always returnsfalsebecauseAbsentbehaves like a falsey value.- Overrides:
booleanValuein classValue
-
booleanValue
public boolean booleanValue(boolean orElse)
Always returnsfalsebecauseAbsentbehaves like a falsey value.- Overrides:
booleanValuein classValue
-
typeOrder
public int typeOrder()
Description copied from class:ItemReturns 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:
compareToin interfaceComparable<Item>- Specified by:
compareToin classItem
-
debug
public void debug(Output<?> output)
Description copied from interface:DebugWrites a developer readable, debug-formatted string representation of this object tooutput.
-
absent
public static Absent absent()
-
-