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 Integer
s 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 Integer
Multiplies the givenInteger
s and returns their productstatic NaturalNumber
Multiplies the givenNaturalNumber
s and returns their productstatic PositiveInteger
Multiplies the givenPositiveInteger
s and returns their product
-
Constructor Details
-
IntegerMultiplication
public IntegerMultiplication()
-
-
Method Details
-
apply
Description copied from interface:org.zfcj.math.set.BiFunction
Applies the function to the given input elements t and u and returns the corresponding output element -
calculate
Multiplies the givenInteger
s and returns their product- Parameters:
i
- the first integerj
- the second integer- Returns:
- the product of the given integers
-
calculate
Multiplies the givenNaturalNumber
s 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 givenPositiveInteger
s and returns their product- Parameters:
i
- the first positive integerj
- the second positive integer- Returns:
- the product of the given positive integers
-