|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinfo.javelot.functionalj.util.Operators
public final class Operators
Contains function definitions for common operators.
| Field Summary | |
|---|---|
static Function2<Integer,Integer,Integer> |
add
Function that corresponds to the + operator. |
static Function2<Boolean,Boolean,Boolean> |
and
Function that corresponds to the && operator. |
static Function2<String,String,String> |
concat
Function that corresponds to the + operator as it pertains to
concatenating two Strings. |
static Function2<Integer,Integer,Integer> |
divide
Function that corresponds to the / operator. |
static Function2<Integer,Integer,Integer> |
max
Function that corresponds to the Math.max(int, int) method. |
static Function2<Integer,Integer,Integer> |
min
Function that corresponds to the Math.min(int, int) method. |
static Function2<Integer,Integer,Integer> |
multiply
Function that corresponds to the * operator. |
static Function1<Boolean,Boolean> |
not
Function that corresponds to the boolean 'not' operator. |
static Function2<Boolean,Boolean,Boolean> |
or
Function that corresponds to the || operator. |
static Function2<Integer,Integer,Integer> |
subtract
Function that corresponds to the - operator. |
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Function2<Integer,Integer,Integer> add
+ operator.
public static final Function2<Integer,Integer,Integer> multiply
* operator.
public static final Function2<Integer,Integer,Integer> subtract
- operator.
public static final Function2<Integer,Integer,Integer> divide
/ operator.
public static final Function2<Integer,Integer,Integer> min
Math.min(int, int) method.
public static final Function2<Integer,Integer,Integer> max
Math.max(int, int) method.
public static final Function2<Boolean,Boolean,Boolean> and
&& operator.
public static final Function2<Boolean,Boolean,Boolean> or
|| operator.
public static final Function1<Boolean,Boolean> not
!'.
public static final Function2<String,String,String> concat
+ operator as it pertains to
concatenating two Strings.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||