public class Decimal extends java.lang.Object implements OperableValue<Decimal>, ImplicitCasts
| Constructor and Description |
|---|
Decimal(double value) |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertIs(java.lang.Object... objs) |
Decimal |
divide(Decimal other) |
Truth |
equals(Decimal other) |
java.lang.String |
getType() |
Truth |
greaterThan(Decimal other) |
Truth |
greaterThanOrEqual(Decimal other) |
OperableValue[] |
implicitCastBy(OperableValue target,
ImplicitBinaryOperator operator) |
Truth |
lessThan(Decimal other) |
Truth |
lessThanOrEqual(Decimal other) |
Decimal |
minus(Decimal other) |
Decimal |
mod(Decimal other) |
Decimal |
negative() |
static Decimal |
of(double value) |
Decimal |
plus(Decimal other) |
Decimal |
pow(Decimal other) |
Decimal |
root(Decimal other) |
Decimal |
times(Decimal other) |
java.lang.Double |
toNativeObject() |
java.lang.String |
toString() |
double |
value() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitassertIs, rangeTo, unsupportedpublic static void assertIs(java.lang.Object... objs)
public static Decimal of(double value)
public double value()
public java.lang.Double toNativeObject()
toNativeObject in interface Valuepublic java.lang.String toString()
toString in class java.lang.Objectpublic OperableValue[] implicitCastBy(OperableValue target, ImplicitBinaryOperator operator)
implicitCastBy in interface ImplicitCastspublic Decimal plus(Decimal other)
plus in interface OperableValue<Decimal>public Decimal minus(Decimal other)
minus in interface OperableValue<Decimal>public Decimal times(Decimal other)
times in interface OperableValue<Decimal>public Decimal divide(Decimal other)
divide in interface OperableValue<Decimal>public Decimal pow(Decimal other)
pow in interface OperableValue<Decimal>public Decimal root(Decimal other)
root in interface OperableValue<Decimal>public Decimal mod(Decimal other)
mod in interface OperableValue<Decimal>public Decimal negative()
negative in interface OperableValue<Decimal>public Truth equals(Decimal other)
equals in interface OperableValue<Decimal>public Truth greaterThan(Decimal other)
greaterThan in interface OperableValue<Decimal>public Truth lessThan(Decimal other)
lessThan in interface OperableValue<Decimal>public Truth greaterThanOrEqual(Decimal other)
greaterThanOrEqual in interface OperableValue<Decimal>public Truth lessThanOrEqual(Decimal other)
lessThanOrEqual in interface OperableValue<Decimal>