Package fj.function
Class BigIntegers
- java.lang.Object
-
- fj.function.BigIntegers
-
public final class BigIntegers extends java.lang.ObjectCurried functions over Integers.
-
-
Field Summary
Fields Modifier and Type Field Description static F<java.math.BigInteger,java.math.BigInteger>absAbsolute value.static F<java.math.BigInteger,F<java.math.BigInteger,java.math.BigInteger>>addCurried Integer addition.static F<java.math.BigInteger,F<java.math.BigInteger,java.math.BigInteger>>multiplyCurried Integer multiplication.static F<java.math.BigInteger,java.math.BigInteger>negateNegation.static F<java.math.BigInteger,F<java.lang.Integer,java.math.BigInteger>>powerPower.static F<java.math.BigInteger,F<java.math.BigInteger,java.math.BigInteger>>remainderRemainder.static F<java.math.BigInteger,F<java.math.BigInteger,java.math.BigInteger>>subtractCurried Integer subtraction.
-
Constructor Summary
Constructors Modifier Constructor Description privateBigIntegers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.math.BigIntegerproduct(List<java.math.BigInteger> ints)Returns the product of a list of big integers.static java.math.BigIntegersum(List<java.math.BigInteger> ints)Sums a list of big integers.
-
-
-
Field Detail
-
add
public static final F<java.math.BigInteger,F<java.math.BigInteger,java.math.BigInteger>> add
Curried Integer addition.
-
multiply
public static final F<java.math.BigInteger,F<java.math.BigInteger,java.math.BigInteger>> multiply
Curried Integer multiplication.
-
subtract
public static final F<java.math.BigInteger,F<java.math.BigInteger,java.math.BigInteger>> subtract
Curried Integer subtraction.
-
negate
public static final F<java.math.BigInteger,java.math.BigInteger> negate
Negation.
-
abs
public static final F<java.math.BigInteger,java.math.BigInteger> abs
Absolute value.
-
remainder
public static final F<java.math.BigInteger,F<java.math.BigInteger,java.math.BigInteger>> remainder
Remainder.
-
-
Method Detail
-
sum
public static java.math.BigInteger sum(List<java.math.BigInteger> ints)
Sums a list of big integers.- Parameters:
ints- A list of big integers to sum.- Returns:
- The sum of the big integers in the list.
-
product
public static java.math.BigInteger product(List<java.math.BigInteger> ints)
Returns the product of a list of big integers.- Parameters:
ints- A list of big integers to multiply together.- Returns:
- The product of the big integers in the list.
-
-