- 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 Item
and(Item that)
Value
and(Value that)
boolean
booleanValue()
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
compareTo(Item other)
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
.<T> Output<T>
display(Output<T> output)
Writes a human readable, display-formatted string representation of this object tooutput
.boolean
equals(Object other)
static Bool
from(boolean value)
int
hashCode()
boolean
isConstant()
boolean
isDefinite()
Returnstrue
if thisValue
is not one of: an emptyRecord
,False
,Extant
, orAbsent
.Value
not()
Item
or(Item that)
Value
or(Value that)
String
stringValue()
Converts thisValue
into aString
value, if possible.int
typeOrder()
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: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
public String 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
public Item conditional(Item thenTerm, Item elseTerm)
- Overrides:
conditional
in classValue
-
conditional
public Value conditional(Value thenTerm, Value elseTerm)
- Overrides:
conditional
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
.
-
display
public <T> Output<T> display(Output<T> output)
Description copied from interface:Display
Writes a human readable, display-formatted string representation of this object tooutput
.
-
from
public static Bool from(boolean value)
-
-