- java.lang.Object
-
- swim.structure.Item
-
- swim.structure.Value
-
- swim.structure.Bool
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Itemand(Item that)Valueand(Value that)booleanbooleanValue()Converts thisValueinto a primitivebooleanvalue, if possible.booleanbooleanValue(boolean orElse)Converts thisValueinto a primitivebooleanvalue, if possible; otherwise returnsorElseif thisValuecan't be converted into a primitivebooleanvalue.intcompareTo(Item other)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.voiddisplay(Output<?> output)Writes a human readable, display-formatted string representation of this object tooutput.booleanequals(Object other)static Boolfrom(boolean value)inthashCode()booleanisConstant()booleanisDefinite()Returnstrueif thisValueis not one of: an emptyRecord,False,Extant, orAbsent.Valuenot()Itemor(Item that)Valueor(Value that)StringstringValue()Converts thisValueinto aStringvalue, if possible.inttypeOrder()Returns the heterogeneous sort order of thisItem.-
Methods inherited from class swim.structure.Value
absent, 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, isDefined, isDistinct, 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, tag, tail, target, times, times, toValue, unflattened
-
Methods inherited from class swim.structure.Item
appended, appended, appended, appended, appended, appended, appended, appended, cast, cast, coerce, coerce, concat, evaluate, evaluate, filter, filter, globalScope, invoke, iterator, max, min, precedence, prepended, prepended, prepended, prepended, prepended, prepended, prepended, prepended, substitute, substitute, toString, updated, 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, updatedAttr, updatedSlot, 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
-
isDefinite
public boolean isDefinite()
Description copied from class:ValueReturnstrueif thisValueis not one of: an emptyRecord,False,Extant, orAbsent.- Overrides:
isDefinitein classValue
-
isConstant
public boolean isConstant()
Description copied from class:Item- Specified by:
isConstantin classItem
-
stringValue
public String stringValue()
Description copied from class:ValueConverts thisValueinto aStringvalue, if possible.- Overrides:
stringValuein classValue
-
booleanValue
public boolean booleanValue()
Description copied from class:ValueConverts thisValueinto a primitivebooleanvalue, if possible.- Overrides:
booleanValuein classValue
-
booleanValue
public boolean booleanValue(boolean orElse)
Description copied from class:ValueConverts thisValueinto a primitivebooleanvalue, if possible; otherwise returnsorElseif thisValuecan't be converted into a primitivebooleanvalue.- Overrides:
booleanValuein classValue
-
conditional
public Item conditional(Item thenTerm, Item elseTerm)
- Overrides:
conditionalin classValue
-
conditional
public Value conditional(Value thenTerm, Value elseTerm)
- Overrides:
conditionalin 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.
-
display
public void display(Output<?> output)
Description copied from interface:DisplayWrites a human readable, display-formatted string representation of this object tooutput.
-
from
public static Bool from(boolean value)
-
-