Optimization for ULong.toBigInteger

This commit is contained in:
Sergey Zhuravlev 2017-12-14 18:28:15 +03:00
parent a32a5b7f0b
commit f797baa576

View File

@ -143,6 +143,11 @@ public final class ULong extends UNumber implements Comparable<ULong> {
return value.doubleValue();
}
@Override
public BigInteger toBigInteger() {
return value;
}
@Override
public int hashCode() {
return value.hashCode();