RE
- see MonadicOperator
public class SquareOperator<RE extends IRingElement<RE>> extends java.lang.Object implements MonadicOperator<RE>
Modifier and Type | Field and Description |
---|---|
private static MonadicOperator<? extends IRingElement<?>> |
INSTANCE
The singleton for this class.
|
Modifier | Constructor and Description |
---|---|
private |
SquareOperator()
Deprecated.
use
getInstance() |
Modifier and Type | Method and Description |
---|---|
RE |
apply(RE x)
Applies the function to an element.
|
static MonadicOperator<? extends IRingElement<?>> |
getInstance() |
private static final MonadicOperator<? extends IRingElement<?>> INSTANCE
@Deprecated private SquareOperator()
getInstance()
getInstance()
.public static MonadicOperator<? extends IRingElement<?>> getInstance()
public RE apply(RE x)
MonadicOperator
apply
in interface MonadicOperator<RE extends IRingElement<RE>>
x
- the element to be squared.x
.