public static enum N.Op extends Enum<N.Op> implements Osgl.Func2<Number,Number,Number>
| Modifier and Type | Method and Description |
|---|---|
Number |
apply(Number o,
Number o2)
Apply the two params to the function
|
Osgl.F0<Number> |
curry(Number a,
Number b) |
static N.Op |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static N.Op[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final N.Op ADD
public static final N.Op SUB
public static final N.Op MUL
public static final N.Op DIV
public static N.Op[] values()
for (N.Op c : N.Op.values()) System.out.println(c);
public static N.Op valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic Number apply(Number o, Number o2)
Osgl.Func2In case implementing a partial function, it can throw out an
NotAppliedException if the function is not defined for
the given parameter(s)
apply in interface Osgl.Func2<Number,Number,Number>o - the first argument of type P1o2 - the second argument of type P2Copyright © 2017. All Rights Reserved.