|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Conjunction>
net.sf.mmm.util.lang.api.Conjunction
public enum Conjunction
A conjunction represents a function that maps a list of boolean arguments to one boolean result.
| Enum Constant Summary | |
|---|---|
AND
This conjunction is true if and only if all arguments are
true. |
|
NAND
This is the negation of AND. |
|
NOR
This is the negation of OR. |
|
OR
This conjunction is true if and only if at least one argument
is true. |
|
| Field Summary | |
|---|---|
private String |
title
|
private String |
value
|
| Method Summary | |
|---|---|
abstract boolean |
eval(boolean... arguments)
This method evaluates this conjunction for the given boolean arguments. |
static Conjunction |
fromValue(String value)
This method gets the Conjunction with the given
. |
String |
getTitle()
This method gets the title of this datatype. |
String |
getValue()
This method returns the raw value of this datatype. |
String |
toString()
This method needs to return the same result a Datatype.getTitle(). |
static Conjunction |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Conjunction[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Conjunction AND
true if and only if all arguments are
true.
public static final Conjunction OR
true if and only if at least one argument
is true.
public static final Conjunction NAND
AND. It is only true if at
least one argument is false.
public static final Conjunction NOR
OR. It is only true if all
arguments are false.
| Field Detail |
|---|
private final String value
getValue()private final String title
getTitle()| Method Detail |
|---|
public static Conjunction[] values()
for (Conjunction c : Conjunction.values()) System.out.println(c);
public static Conjunction valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic abstract boolean eval(boolean... arguments)
arguments.
arguments - are the boolean values to evaluate.
arguments.public String getValue()
java.lang datatype. In case of a composed datatype it
is also legal that this method returns the datatype instance itself.
getValue in interface Datatype<String>public String getTitle()
NlsMessage).Datatype.toString() is quite weak, this
method is added to explicitly express the presence of the title and to
ensure implementors of this interface can NOT miss to implement this.
getTitle in interface Datatype<String>Datatype.toString()public String toString()
Datatype.getTitle().
toString in interface Datatype<String>toString in class Enum<Conjunction>public static Conjunction fromValue(String value)
Conjunction with the given
value.
value - is the value of the requested
Conjunction.
Conjunction.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||