public class IntegerValueType extends Number implements Comparable, Serializable
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o) |
static IntegerValueType |
create(BigInteger bi)
translates a BigInteger to an IntegerValueType.
|
static IntegerValueType |
create(String nonCanonicalizedValue)
translates non-canonicalized representation of an integer into
an IntegerValueType.
|
double |
doubleValue() |
boolean |
equals(Object o) |
float |
floatValue() |
int |
hashCode() |
int |
intValue() |
boolean |
isNegative()
returns true if the value if negative (less than zero)
|
boolean |
isNonNegative()
returns true if the value if non-negative (greater than or equal to zero)
|
boolean |
isNonPositive()
returns true if the value if non-positive (less than or equal to zero)
|
boolean |
isPositive()
returns true if the value if positive (greater than zero)
|
long |
longValue() |
int |
precision() |
BigInteger |
toBigInteger()
converts to BigInteger.
|
String |
toString() |
byteValue, shortValue
public static IntegerValueType create(BigInteger bi)
public static IntegerValueType create(String nonCanonicalizedValue)
public int compareTo(Object o)
compareTo
in interface Comparable
public int precision()
public boolean isNonPositive()
public boolean isPositive()
public boolean isNegative()
public boolean isNonNegative()
public BigInteger toBigInteger()
public double doubleValue()
doubleValue
in class Number
public float floatValue()
floatValue
in class Number
Copyright © 2016 Oracle Corporation. All rights reserved.