java.lang.Object
swim.structure.Item
swim.structure.Value
swim.structure.Num
-
Method Summary
Modifier and TypeMethodDescriptionabstract Numabs()abstract ValuebitwiseAnd(Num that) bitwiseAnd(Value that) abstract Valueabstract Valueabstract ValuebitwiseXor(Num that) bitwiseXor(Value that) abstract booleanConverts thisValueinto a primitivebooleanvalue.booleanbooleanValue(boolean orElse) abstract byteConverts thisNuminto a primitivebytevalue.bytebyteValue(byte orElse) abstract Numceil()abstract charConverts thisValueinto a primitivecharvalue.charcharValue(char orElse) intint<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 Numabstract doubleConverts thisNuminto a primitivedoublevalue.doubledoubleValue(double orElse) booleanabstract floatConverts thisNuminto a primitivefloatvalue.floatfloatValue(float orElse) abstract Numfloor()static Numfrom(char value) static Numfrom(double value) static Numfrom(float value) static Numfrom(int value) static Numfrom(long value) static Numstatic Numstatic Numfrom(BigInteger value) inthashCode()abstract BigIntegerConverts thisNuminto aBigIntegervalue.integerValue(BigInteger orElse) abstract intintValue()Converts thisNuminto a primitiveintvalue.intintValue(int orElse) abstract Numinverse()booleanabstract booleanabstract booleanisNaN()booleanisUint32()booleanisUint64()abstract booleanabstract booleanabstract booleanabstract booleanabstract booleanabstract booleanabstract booleanabstract longConverts thisNuminto a primitivelongvalue.longlongValue(long orElse) abstract Numabstract Numabstract Numnegative()abstract NumberConverts thisNuminto aNumberobject.numberValue(Number orElse) abstract Numpositive()abstract Numabstract Numround()abstract shortConverts thisNuminto a primitiveshortvalue.shortshortValue(short orElse) abstract Numsqrt()abstract StringConverts thisNuminto aStringvalue.stringValue(String orElse) abstract NumintReturns the heterogeneous sort order of thisItem.static Numuint32(int value) static Numuint64(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, unflattenedMethods 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, updatedSlotMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
isConstant
public boolean isConstant()Description copied from class:Item- Specified by:
isConstantin 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 thisNuminto aStringvalue.- Overrides:
stringValuein classValue
-
stringValue
- Overrides:
stringValuein classValue
-
byteValue
public abstract byte byteValue()Converts thisNuminto a primitivebytevalue. -
byteValue
public byte byteValue(byte orElse) -
shortValue
public abstract short shortValue()Converts thisNuminto a primitiveshortvalue.- Overrides:
shortValuein classValue
-
shortValue
public short shortValue(short orElse) - Overrides:
shortValuein classValue
-
intValue
public abstract int intValue()Converts thisNuminto a primitiveintvalue. -
intValue
public int intValue(int orElse) -
longValue
public abstract long longValue()Converts thisNuminto a primitivelongvalue. -
longValue
public long longValue(long orElse) -
floatValue
public abstract float floatValue()Converts thisNuminto a primitivefloatvalue.- Overrides:
floatValuein classValue
-
floatValue
public float floatValue(float orElse) - Overrides:
floatValuein classValue
-
doubleValue
public abstract double doubleValue()Converts thisNuminto a primitivedoublevalue.- Overrides:
doubleValuein classValue
-
doubleValue
public double doubleValue(double orElse) - Overrides:
doubleValuein classValue
-
integerValue
Converts thisNuminto aBigIntegervalue.- Overrides:
integerValuein classValue
-
integerValue
- Overrides:
integerValuein classValue
-
numberValue
Converts thisNuminto aNumberobject.- Overrides:
numberValuein classValue
-
numberValue
- Overrides:
numberValuein classValue
-
charValue
public abstract char charValue()Converts thisValueinto a primitivecharvalue. -
charValue
public char charValue(char orElse) -
booleanValue
public abstract boolean booleanValue()Converts thisValueinto a primitivebooleanvalue.- Overrides:
booleanValuein classValue
-
booleanValue
public boolean booleanValue(boolean orElse) - Overrides:
booleanValuein classValue
-
bitwiseOr
-
bitwiseOr
-
bitwiseXor
- Overrides:
bitwiseXorin classValue
-
bitwiseXor
-
bitwiseAnd
- Overrides:
bitwiseAndin classValue
-
bitwiseAnd
-
plus
-
plus
-
minus
-
minus
-
times
-
times
-
divide
-
divide
-
modulo
-
modulo
-
bitwiseNot
- Overrides:
bitwiseNotin classValue
-
negative
-
positive
-
inverse
-
abs
-
ceil
-
floor
-
round
-
sqrt
-
pow
-
max
-
min
-
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
- Specified by:
compareToin interfaceComparable<Item>- Specified by:
compareToin classItem
-
compareTo
-
equals
-
hashCode
public int hashCode() -
debug
Description copied from interface:DebugWrites a developer readable, debug-formatted string representation of this object tooutput. -
display
Description copied from interface:DisplayWrites a human readable, display-formatted string representation of this object tooutput. -
from
-
from
-
from
-
from
-
from
-
from
-
from
-
from
-
uint32
-
uint64
-