| Modifier and Type | Field and Description |
|---|---|
| private static final long | |
| private final String | value
canonical representation of absolute value of integer BNF of canonical representation canonical_integer := "0" | nonzero nonzero := '-'? |
| Access | Constructor and Description |
|---|---|
| private | IntegerValueType(String canonicalizedValue)
internal use only: construct object from canonicalized value |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: 1 if this value is bigger than rhs 0 if the values are the same -1 if rhs is bigger than this.the object to be compared. o)Implements java. |
| public static IntegerValueType | |
| public static IntegerValueType | |
| public double | doubleValue()
Implements abstract java. double.
|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public float | floatValue()
Implements abstract java. float.
|
| public int | |
| public int | intValue()
Implements abstract java. int.
|
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public long | longValue()
Implements abstract java. long.
|
| public int | |
| public BigInteger | |
| public String |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| value | back to summary |
|---|---|
| private final String value canonical representation of absolute value of integer BNF of canonical representation canonical_integer := "0" | nonzero nonzero := '-'? ["1"-"9"] ["0"-"9"]* | |
| IntegerValueType | back to summary |
|---|---|
| private IntegerValueType(String canonicalizedValue) internal use only: construct object from canonicalized value | |
| IntegerValueType | back to summary |
|---|---|
| private IntegerValueType(long v) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(Object o) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| create | back to summary |
|---|---|
| public static IntegerValueType create(BigInteger bi) translates a BigInteger to an IntegerValueType. | |
| create | back to summary |
|---|---|
| public static IntegerValueType create(String nonCanonicalizedValue) translates non-canonicalized representation of an integer into an IntegerValueType.
| |
| doubleValue | back to summary |
|---|---|
| public double doubleValue() Implements abstract java. Doc from java. Returns the value of the specified number as a
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| floatValue | back to summary |
|---|---|
| public float floatValue() Implements abstract java. Doc from java. Returns the value of the specified number as a
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| intValue | back to summary |
|---|---|
| public int intValue() Implements abstract java. Doc from java. Returns the value of the specified number as an
| |
| isNegative | back to summary |
|---|---|
| public boolean isNegative() returns true if the value if negative (less than zero) | |
| isNonNegative | back to summary |
|---|---|
| public boolean isNonNegative() returns true if the value if non-negative (greater than or equal to zero) | |
| isNonPositive | back to summary |
|---|---|
| public boolean isNonPositive() returns true if the value if non-positive (less than or equal to zero) | |
| isPositive | back to summary |
|---|---|
| public boolean isPositive() returns true if the value if positive (greater than zero) | |
| longValue | back to summary |
|---|---|
| public long longValue() Implements abstract java. Doc from java. Returns the value of the specified number as a
| |
| precision | back to summary |
|---|---|
| public int precision() | |
| toBigInteger | back to summary |
|---|---|
| public BigInteger toBigInteger() converts to BigInteger. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |