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