public final class SafeInteger extends Number implements Comparable<SafeInteger>, com.oracle.truffle.api.interop.TruffleObject
Modifier and Type | Method and Description |
---|---|
SafeInteger |
addExact(SafeInteger other) |
int |
compareTo(SafeInteger other) |
SafeInteger |
decrementExact() |
double |
doubleValue() |
boolean |
equals(Object obj) |
float |
floatValue() |
int |
hashCode() |
SafeInteger |
incrementExact() |
int |
intValue() |
boolean |
isNegative() |
long |
longValue() |
static SafeInteger |
parseUnsignedInt(String value) |
String |
toString() |
static SafeInteger |
valueOf(int value) |
static SafeInteger |
valueOf(long value) |
byteValue, shortValue
public static SafeInteger valueOf(int value)
public static SafeInteger valueOf(long value)
public static SafeInteger parseUnsignedInt(String value)
public float floatValue()
floatValue
in class Number
public double doubleValue()
doubleValue
in class Number
public int compareTo(SafeInteger other)
compareTo
in interface Comparable<SafeInteger>
public boolean isNegative()
public SafeInteger incrementExact()
public SafeInteger decrementExact()
public SafeInteger addExact(SafeInteger other)