Package fj.function
Class BigIntegers
- java.lang.Object
-
- fj.function.BigIntegers
-
public final class BigIntegers extends java.lang.Object
Curried functions over Integers.
-
-
Field Summary
Fields Modifier and Type Field Description static F<java.math.BigInteger,java.math.BigInteger>
abs
Absolute value.static F<java.math.BigInteger,F<java.math.BigInteger,java.math.BigInteger>>
add
Curried Integer addition.static F<java.math.BigInteger,F<java.math.BigInteger,java.math.BigInteger>>
multiply
Curried Integer multiplication.static F<java.math.BigInteger,java.math.BigInteger>
negate
Negation.static F<java.math.BigInteger,F<java.lang.Integer,java.math.BigInteger>>
power
Power.static F<java.math.BigInteger,F<java.math.BigInteger,java.math.BigInteger>>
remainder
Remainder.static F<java.math.BigInteger,F<java.math.BigInteger,java.math.BigInteger>>
subtract
Curried Integer subtraction.
-
Constructor Summary
Constructors Modifier Constructor Description private
BigIntegers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.math.BigInteger
product(List<java.math.BigInteger> ints)
Returns the product of a list of big integers.static java.math.BigInteger
sum(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.
-
-