git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [commons-numbers] [...] NUMBERS-91: Added ofInt() factory methods [...]


Hello Eric.

On Thu, 27 Dec 2018 17:00:15 -0800, Eric Barnhill wrote:
I am overloading:

public static BigFraction ofInt(final BigInteger num) {
        return new BigFraction(num, BigInteger.ONE);
    }

    public static BigFraction ofInt(BigInteger num, BigInteger den) {
    return new BigFraction(num, den);
    }

    private BigFraction(BigInteger num, BigInteger den) {

Did my comment not give that impression?

I was in fact wondering why "ofInt" rather than just "of".

Best,
Gilles

[...]


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xxxxxxxxxxxxxxxxxx
For additional commands, e-mail: dev-help@xxxxxxxxxxxxxxxxxx