RE
- a specialisation of IRingElement
public class AddOperator<RE extends IRingElement<RE>> extends java.lang.Object implements DyadicOperator<RE>
Modifier and Type | Field and Description |
---|---|
private static AddOperator<? extends IRingElement<?>> |
INSTANCE
The singleton for this class.
|
Constructor and Description |
---|
AddOperator()
Deprecated.
use
getInstance() |
Modifier and Type | Method and Description |
---|---|
RE |
apply(RE x,
RE y)
Applies the function to two elements.
|
static AddOperator<? extends IRingElement<?>> |
getInstance() |
private static final AddOperator<? extends IRingElement<?>> INSTANCE
@Deprecated public AddOperator()
getInstance()
getInstance()
.public static AddOperator<? 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