java.lang.Object
org.zfcj.math.numbers.IntegerModulo
- All Implemented Interfaces:
org.zfcj.math.set.BiFunction<Integer,
,Integer, Integer> org.zfcj.math.set.BinaryOperator<Integer>
A
BinaryOperator
that divides one Integer
s by
another and returns the remainder-
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
Calculates the remainder of dividing the given dividend by the given divisor
-
Constructor Details
-
IntegerModulo
public IntegerModulo()
-
-
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
Calculates the remainder of dividing the given dividend by the given divisor- Parameters:
dividend
- the number being divideddivisor
- the number to divide by- Returns:
- the quotient of division
-