java.lang.Object
org.zfcj.math.numbers.IntegerMultiplication
- All Implemented Interfaces:
org.zfcj.math.set.BiFunction<Integer,,Integer, Integer> org.zfcj.math.set.BinaryOperator<Integer>
public class IntegerMultiplication
extends Object
implements org.zfcj.math.set.BinaryOperator<Integer>
A
BinaryOperator that multiplies two Integers and returns
their product-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionApplies the function to the given input elements t and u and returns the corresponding output elementstatic IntegerMultiplies the givenIntegers and returns their productstatic NaturalNumberMultiplies the givenNaturalNumbers and returns their productstatic PositiveIntegerMultiplies the givenPositiveIntegers and returns their product
-
Constructor Details
-
IntegerMultiplication
public IntegerMultiplication()
-
-
Method Details
-
apply
Description copied from interface:org.zfcj.math.set.BiFunctionApplies the function to the given input elements t and u and returns the corresponding output element -
calculate
Multiplies the givenIntegers and returns their product- Parameters:
i- the first integerj- the second integer- Returns:
- the product of the given integers
-
calculate
Multiplies the givenNaturalNumbers and returns their product- Parameters:
i- the first natural numberj- the second natural number- Returns:
- the product of the given natural number
-
calculate
Multiplies the givenPositiveIntegers and returns their product- Parameters:
i- the first positive integerj- the second positive integer- Returns:
- the product of the given positive integers
-