|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.xtext.xbase.lib.BooleanExtensions
public class BooleanExtensions
This is an extension library for booleans.
| Constructor Summary | |
|---|---|
BooleanExtensions()
|
|
| Method Summary | |
|---|---|
static boolean |
operator_and(boolean a,
boolean b)
The logical and (conjunction). |
static boolean |
operator_not(boolean b)
The logical not (negation). |
static boolean |
operator_or(boolean a,
boolean b)
A logical or (disjunction). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BooleanExtensions()
| Method Detail |
|---|
public static boolean operator_and(boolean a,
boolean b)
and (conjunction). This is the equivalent to the java && operator.
a - a boolean value.b - another boolean value.
a && b
public static boolean operator_or(boolean a,
boolean b)
or (disjunction). This is the equivalent to the java || operator.
a - a boolean value.b - another boolean value.
a || bpublic static boolean operator_not(boolean b)
not (negation). This is the equivalent to the java ! operator.
b - a boolean value.
!b
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||