java.lang.Object
swim.structure.Item
swim.structure.Value
swim.structure.Num
-
Method Summary
Modifier and TypeMethodDescriptionabstract Num
abs()
abstract Value
bitwiseAnd
(Num that) bitwiseAnd
(Value that) abstract Value
abstract Value
abstract Value
bitwiseXor
(Num that) bitwiseXor
(Value that) abstract boolean
Converts thisValue
into a primitiveboolean
value.boolean
booleanValue
(boolean orElse) abstract byte
Converts thisNum
into a primitivebyte
value.byte
byteValue
(byte orElse) abstract Num
ceil()
abstract char
Converts thisValue
into a primitivechar
value.char
charValue
(char orElse) int
int
<T> Output<T>
Writes a developer readable, debug-formatted string representation of this object tooutput
.abstract <T> Output<T>
Writes a human readable, display-formatted string representation of this object tooutput
.abstract Num
abstract double
Converts thisNum
into a primitivedouble
value.double
doubleValue
(double orElse) boolean
abstract float
Converts thisNum
into a primitivefloat
value.float
floatValue
(float orElse) abstract Num
floor()
static Num
from
(char value) static Num
from
(double value) static Num
from
(float value) static Num
from
(int value) static Num
from
(long value) static Num
static Num
static Num
from
(BigInteger value) int
hashCode()
abstract BigInteger
Converts thisNum
into aBigInteger
value.integerValue
(BigInteger orElse) abstract int
intValue()
Converts thisNum
into a primitiveint
value.int
intValue
(int orElse) abstract Num
inverse()
boolean
abstract boolean
abstract boolean
isNaN()
boolean
isUint32()
boolean
isUint64()
abstract boolean
abstract boolean
abstract boolean
abstract boolean
abstract boolean
abstract boolean
abstract boolean
abstract long
Converts thisNum
into a primitivelong
value.long
longValue
(long orElse) abstract Num
abstract Num
abstract Num
negative()
abstract Number
Converts thisNum
into aNumber
object.numberValue
(Number orElse) abstract Num
positive()
abstract Num
abstract Num
round()
abstract short
Converts thisNum
into a primitiveshort
value.short
shortValue
(short orElse) abstract Num
sqrt()
abstract String
Converts thisNum
into aString
value.stringValue
(String orElse) abstract Num
int
Returns the heterogeneous sort order of thisItem
.static Num
uint32
(int value) static Num
uint64
(long value) Methods inherited from class swim.structure.Value
absent, alias, and, and, bitwiseAnd, bitwiseOr, bitwiseXor, body, branch, builder, commit, conditional, conditional, contains, containsKey, containsKey, containsValue, divide, empty, eq, eq, extant, flattened, fromObject, ge, ge, get, get, getAttr, getAttr, getField, getField, getItem, getSlot, getSlot, gt, gt, head, header, headers, isAliased, isDefined, isDefinite, isDistinct, isMutable, key, keyEquals, lambda, le, le, length, lt, lt, minus, modulo, ne, ne, not, or, or, plus, removed, removed, tag, tail, target, 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
-
isConstant
public boolean isConstant()Description copied from class:Item
- Specified by:
isConstant
in classItem
-
isUint32
public boolean isUint32() -
isUint64
public boolean isUint64() -
isNaN
public abstract boolean isNaN() -
isInfinite
public abstract boolean isInfinite() -
isValidByte
public abstract boolean isValidByte() -
isValidShort
public abstract boolean isValidShort() -
isValidInt
public abstract boolean isValidInt() -
isValidLong
public abstract boolean isValidLong() -
isValidFloat
public abstract boolean isValidFloat() -
isValidDouble
public abstract boolean isValidDouble() -
isValidInteger
public abstract boolean isValidInteger() -
stringValue
Converts thisNum
into aString
value.- Overrides:
stringValue
in classValue
-
stringValue
- Overrides:
stringValue
in classValue
-
byteValue
public abstract byte byteValue()Converts thisNum
into a primitivebyte
value. -
byteValue
public byte byteValue(byte orElse) -
shortValue
public abstract short shortValue()Converts thisNum
into a primitiveshort
value.- Overrides:
shortValue
in classValue
-
shortValue
public short shortValue(short orElse) - Overrides:
shortValue
in classValue
-
intValue
public abstract int intValue()Converts thisNum
into a primitiveint
value. -
intValue
public int intValue(int orElse) -
longValue
public abstract long longValue()Converts thisNum
into a primitivelong
value. -
longValue
public long longValue(long orElse) -
floatValue
public abstract float floatValue()Converts thisNum
into a primitivefloat
value.- Overrides:
floatValue
in classValue
-
floatValue
public float floatValue(float orElse) - Overrides:
floatValue
in classValue
-
doubleValue
public abstract double doubleValue()Converts thisNum
into a primitivedouble
value.- Overrides:
doubleValue
in classValue
-
doubleValue
public double doubleValue(double orElse) - Overrides:
doubleValue
in classValue
-
integerValue
Converts thisNum
into aBigInteger
value.- Overrides:
integerValue
in classValue
-
integerValue
- Overrides:
integerValue
in classValue
-
numberValue
Converts thisNum
into aNumber
object.- Overrides:
numberValue
in classValue
-
numberValue
- Overrides:
numberValue
in classValue
-
charValue
public abstract char charValue()Converts thisValue
into a primitivechar
value. -
charValue
public char charValue(char orElse) -
booleanValue
public abstract boolean booleanValue()Converts thisValue
into a primitiveboolean
value.- Overrides:
booleanValue
in classValue
-
booleanValue
public boolean booleanValue(boolean orElse) - Overrides:
booleanValue
in classValue
-
bitwiseOr
-
bitwiseOr
-
bitwiseXor
- Overrides:
bitwiseXor
in classValue
-
bitwiseXor
-
bitwiseAnd
- Overrides:
bitwiseAnd
in classValue
-
bitwiseAnd
-
plus
-
plus
-
minus
-
minus
-
times
-
times
-
divide
-
divide
-
modulo
-
modulo
-
bitwiseNot
- Overrides:
bitwiseNot
in classValue
-
negative
-
positive
-
inverse
-
abs
-
ceil
-
floor
-
round
-
sqrt
-
pow
-
max
-
min
-
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
-
compareTo
-
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
-
from
-
from
-
from
-
from
-
from
-
from
-
from
-
uint32
-
uint64
-