- java.lang.Object
-
- swim.structure.Item
-
- swim.structure.Value
-
- swim.structure.Extant
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
booleanValue()
Always returnstrue
becauseExtant
behaves like a truthy value.boolean
booleanValue(boolean orElse)
Always returnstrue
becauseExtant
behaves like a truthy value.int
compareTo(Item other)
<T> Output<T>
debug(Output<T> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.boolean
equals(Object other)
static Extant
extant()
int
hashCode()
boolean
isConstant()
boolean
isDefined()
Always returnstrue
becauseExtant
is a defined value.boolean
isDefinite()
Always returnsfalse
becauseExtant
is not a definite value.boolean
isDistinct()
Always returnsfalse
becauseExtant
is not a distinct value.Value
not()
String
stringValue()
Always returns the emptyString
becauseExtant
behaves like an emptyRecord
, which converts to aString
by concatenating the string values of all its members, if all its members convert to string values.String
stringValue(String orElse)
Always returns the emptyString
becauseExtant
behaves like an emptyRecord
, which converts to aString
by concatenating the string values of all its members, if all its members convert to string values.int
typeOrder()
Returns the heterogeneous sort order of thisItem
.Record
unflattened()
Always returns an emptyRecord
becauseExtant
is not a distinct value.-
Methods inherited from class swim.structure.Value
absent, alias, and, and, bitwiseAnd, bitwiseAnd, bitwiseNot, bitwiseOr, bitwiseOr, bitwiseXor, bitwiseXor, body, branch, builder, byteValue, byteValue, charValue, charValue, commit, conditional, conditional, contains, containsKey, containsKey, containsValue, divide, divide, doubleValue, doubleValue, empty, eq, eq, 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, or, or, plus, plus, positive, removed, removed, shortValue, shortValue, tag, tail, target, times, times, toValue
-
Methods inherited from class swim.structure.Item
appended, appended, appended, appended, appended, appended, appended, appended, cast, cast, coerce, coerce, concat, display, 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
-
isDefined
public boolean isDefined()
Always returnstrue
becauseExtant
is a defined value.
-
isDistinct
public boolean isDistinct()
Always returnsfalse
becauseExtant
is not a distinct value.- Overrides:
isDistinct
in classValue
-
isDefinite
public boolean isDefinite()
Always returnsfalse
becauseExtant
is not a definite value.- Overrides:
isDefinite
in classValue
-
isConstant
public boolean isConstant()
Description copied from class:Item
- Specified by:
isConstant
in classItem
-
unflattened
public Record unflattened()
Always returns an emptyRecord
becauseExtant
is not a distinct value.- Overrides:
unflattened
in classValue
-
stringValue
public String stringValue()
Always returns the emptyString
becauseExtant
behaves like an emptyRecord
, which converts to aString
by concatenating the string values of all its members, if all its members convert to string values.- Overrides:
stringValue
in classValue
-
stringValue
public String stringValue(String orElse)
Always returns the emptyString
becauseExtant
behaves like an emptyRecord
, which converts to aString
by concatenating the string values of all its members, if all its members convert to string values.- Overrides:
stringValue
in classValue
-
booleanValue
public boolean booleanValue()
Always returnstrue
becauseExtant
behaves like a truthy value.- Overrides:
booleanValue
in classValue
-
booleanValue
public boolean booleanValue(boolean orElse)
Always returnstrue
becauseExtant
behaves like a truthy value.- Overrides:
booleanValue
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
.
-
extant
public static Extant extant()
-
-