public class BigIntegerRepresentation extends Representation
BigInteger; also used to represent other integer types.| Modifier and Type | Field and Description |
|---|---|
protected java.math.BigInteger |
n
The
BigInteger represented by this representation. |
| Constructor and Description |
|---|
BigIntegerRepresentation() |
BigIntegerRepresentation(java.math.BigInteger n) |
BigIntegerRepresentation(int n) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.math.BigInteger |
get()
Retrieves the represented
BigInteger. |
int |
getInt()
Retrieves the integer value of the represented
BigInteger. |
int |
hashCode() |
java.lang.String |
toString() |
public BigIntegerRepresentation()
public BigIntegerRepresentation(java.math.BigInteger n)
public BigIntegerRepresentation(int n)
public java.math.BigInteger get()
BigInteger.public int getInt()
BigInteger.public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object