- java.lang.Object
-
- swim.structure.Item
-
- swim.structure.Value
-
- swim.structure.Num
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Numabs()abstract ValuebitwiseAnd(Num that)ValuebitwiseAnd(Value that)abstract ValuebitwiseNot()abstract ValuebitwiseOr(Num that)ValuebitwiseOr(Value that)abstract ValuebitwiseXor(Num that)ValuebitwiseXor(Value that)abstract booleanbooleanValue()Converts thisValueinto a primitivebooleanvalue.booleanbooleanValue(boolean orElse)abstract bytebyteValue()Converts thisNuminto a primitivebytevalue.bytebyteValue(byte orElse)abstract Numceil()abstract charcharValue()Converts thisValueinto a primitivecharvalue.charcharValue(char orElse)intcompareTo(Item other)intcompareTo(Num that)<T> Output<T>debug(Output<T> output)Writes a developer readable, debug-formatted string representation of this object tooutput.abstract <T> Output<T>display(Output<T> output)Writes a human readable, display-formatted string representation of this object tooutput.abstract Numdivide(Num that)Valuedivide(Value that)abstract doubledoubleValue()Converts thisNuminto a primitivedoublevalue.doubledoubleValue(double orElse)booleanequals(Object other)abstract floatfloatValue()Converts 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 Numfrom(Number value)static Numfrom(String value)static Numfrom(BigInteger value)inthashCode()abstract BigIntegerintegerValue()Converts thisNuminto aBigIntegervalue.BigIntegerintegerValue(BigInteger orElse)abstract intintValue()Converts thisNuminto a primitiveintvalue.intintValue(int orElse)abstract Numinverse()booleanisConstant()abstract booleanisInfinite()abstract booleanisNaN()booleanisUint32()booleanisUint64()abstract booleanisValidByte()abstract booleanisValidDouble()abstract booleanisValidFloat()abstract booleanisValidInt()abstract booleanisValidInteger()abstract booleanisValidLong()abstract booleanisValidShort()abstract longlongValue()Converts thisNuminto a primitivelongvalue.longlongValue(long orElse)Nummax(Num that)Nummin(Num that)abstract Numminus(Num that)Valueminus(Value that)abstract Nummodulo(Num that)Valuemodulo(Value that)abstract Numnegative()abstract NumbernumberValue()Converts thisNuminto aNumberobject.NumbernumberValue(Number orElse)abstract Numplus(Num that)Valueplus(Value that)Numpositive()abstract Numpow(Num that)abstract Numround()abstract shortshortValue()Converts thisNuminto a primitiveshortvalue.shortshortValue(short orElse)abstract Numsqrt()abstract StringstringValue()Converts thisNuminto aStringvalue.StringstringValue(String orElse)abstract Numtimes(Num that)Valuetimes(Value that)inttypeOrder()Returns 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, 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
-
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
public abstract String stringValue()
Converts thisNuminto aStringvalue.- Overrides:
stringValuein classValue
-
stringValue
public String stringValue(String orElse)
- Overrides:
stringValuein classValue
-
byteValue
public abstract byte byteValue()
Converts thisNuminto a primitivebytevalue.
-
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.
-
longValue
public abstract long longValue()
Converts thisNuminto a primitivelongvalue.
-
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
public abstract BigInteger integerValue()
Converts thisNuminto aBigIntegervalue.- Overrides:
integerValuein classValue
-
integerValue
public BigInteger integerValue(BigInteger orElse)
- Overrides:
integerValuein classValue
-
numberValue
public abstract Number numberValue()
Converts thisNuminto aNumberobject.- Overrides:
numberValuein classValue
-
numberValue
public Number numberValue(Number orElse)
- Overrides:
numberValuein classValue
-
charValue
public abstract char charValue()
Converts thisValueinto a primitivecharvalue.
-
booleanValue
public abstract boolean booleanValue()
Converts thisValueinto a primitivebooleanvalue.- Overrides:
booleanValuein classValue
-
booleanValue
public boolean booleanValue(boolean orElse)
- Overrides:
booleanValuein classValue
-
bitwiseXor
public Value bitwiseXor(Value that)
- Overrides:
bitwiseXorin classValue
-
bitwiseAnd
public Value bitwiseAnd(Value that)
- Overrides:
bitwiseAndin classValue
-
bitwiseNot
public abstract Value bitwiseNot()
- Overrides:
bitwiseNotin classValue
-
abs
public abstract Num abs()
-
ceil
public abstract Num ceil()
-
floor
public abstract Num floor()
-
round
public abstract Num round()
-
sqrt
public abstract Num sqrt()
-
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
public int compareTo(Item other)
- Specified by:
compareToin interfaceComparable<Item>- Specified by:
compareToin classItem
-
compareTo
public int compareTo(Num that)
-
debug
public <T> Output<T> debug(Output<T> output)
Description copied from interface:DebugWrites a developer readable, debug-formatted string representation of this object tooutput.
-
display
public abstract <T> Output<T> display(Output<T> output)
Description copied from interface:DisplayWrites a human readable, display-formatted string representation of this object tooutput.
-
from
public static Num from(int value)
-
from
public static Num from(long value)
-
from
public static Num from(float value)
-
from
public static Num from(double value)
-
from
public static Num from(BigInteger value)
-
from
public static Num from(char value)
-
uint32
public static Num uint32(int value)
-
uint64
public static Num uint64(long value)
-
-