public class MultiplyOperator<RE extends IRingElement<RE>> extends java.lang.Object implements DyadicOperator<RE>
Modifier and Type | Field and Description |
---|---|
private static DyadicOperator<? extends IRingElement<?>> |
INSTANCE
The singleton for this class.
|
Modifier | Constructor and Description |
---|---|
private |
MultiplyOperator()
The constructor should only be called to create the singleton instance
(see
getInstance() . |
Modifier and Type | Method and Description |
---|---|
RE |
apply(RE x,
RE y)
Applies the function to two elements.
|
static DyadicOperator<? extends IRingElement<?>> |
getInstance() |
private static final DyadicOperator<? extends IRingElement<?>> INSTANCE
private MultiplyOperator()
getInstance()
.public static DyadicOperator<? extends IRingElement<?>> getInstance()
public RE apply(RE x, RE y)
DyadicOperator
apply
in interface DyadicOperator<RE extends IRingElement<RE>>
x
- the value of one elementy
- the value of the other element