Essential Classes Java Book

int compareTo(BigInteger val)
Compares this BigInteger with the specified BigInteger.
boolean equals(Object x)
Compares this BigInteger with the specified Object for equality.
BigInteger max(BigInteger val)
Returns the maximum of this BigInteger and val.
BigInteger min(BigInteger val)
Returns the minimum of this BigInteger and val.