java.lang.Object
swim.structure.Item
swim.structure.Value
swim.structure.Bool
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Converts thisValue
into a primitiveboolean
value, if possible.boolean
booleanValue
(boolean orElse) Converts thisValue
into a primitiveboolean
value, if possible; otherwise returnsorElse
if thisValue
can't be converted into a primitiveboolean
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
.<T> Output<T>
Writes a human readable, display-formatted string representation of this object tooutput
.boolean
static Bool
from
(boolean value) int
hashCode()
boolean
boolean
Returnstrue
if thisValue
is not one of: an emptyRecord
,False
,Extant
, orAbsent
.not()
Converts thisValue
into aString
value, if possible.int
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 Details
-
isDefinite
public boolean isDefinite()Description copied from class:Value
Returnstrue
if thisValue
is not one of: an emptyRecord
,False
,Extant
, orAbsent
.- Overrides:
isDefinite
in classValue
-
isConstant
public boolean isConstant()Description copied from class:Item
- Specified by:
isConstant
in classItem
-
stringValue
Description copied from class:Value
Converts thisValue
into aString
value, if possible.- Overrides:
stringValue
in classValue
-
booleanValue
public boolean booleanValue()Description copied from class:Value
Converts thisValue
into a primitiveboolean
value, if possible.- Overrides:
booleanValue
in classValue
-
booleanValue
public boolean booleanValue(boolean orElse) Description copied from class:Value
Converts thisValue
into a primitiveboolean
value, if possible; otherwise returnsorElse
if thisValue
can't be converted into a primitiveboolean
value.- Overrides:
booleanValue
in classValue
-
conditional
- Overrides:
conditional
in classValue
-
conditional
- Overrides:
conditional
in classValue
-
or
-
or
-
and
-
and
-
not
-
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
. -
display
Description copied from interface:Display
Writes a human readable, display-formatted string representation of this object tooutput
. -
from
-