com.antelmann.math
Enum RelationalOperator
java.lang.Object
java.lang.Enum<RelationalOperator>
com.antelmann.math.RelationalOperator
- All Implemented Interfaces:
- Serializable, Comparable<RelationalOperator>
public enum RelationalOperator
- extends Enum<RelationalOperator>
a relational operator allowing to combine two expressions to produce a boolean value
- Since:
- 11.12.2010, 13:50:04
- Author:
- Holger Antelmann
EQUAL
public static final RelationalOperator EQUAL
NON_EQUAL
public static final RelationalOperator NON_EQUAL
GREATER
public static final RelationalOperator GREATER
GREATER_OR_EQUAL
public static final RelationalOperator GREATER_OR_EQUAL
LESSER
public static final RelationalOperator LESSER
LESSER_OR_EQUAL
public static final RelationalOperator LESSER_OR_EQUAL
values
public static RelationalOperator[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (RelationalOperator c : RelationalOperator.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static RelationalOperator valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
scanNext
public static RelationalOperator scanNext(String str)
startsWithOperator
public static boolean startsWithOperator(String str)
isOperatorString
public static boolean isOperatorString(String str)
fromString
public static RelationalOperator fromString(String symbol)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
getSymbol
public String getSymbol()
toString
public String toString()
- Overrides:
toString in class Enum<RelationalOperator>
isTrueFor
public <T extends Comparable<? super T>> boolean isTrueFor(T arg1,
T arg2)
isTrueFor
public <T> boolean isTrueFor(T arg1,
T arg2,
Comparator<? super T> comp)
isTrueForCompareValue
public boolean isTrueForCompareValue(int c)
(c) Holger Antelmann since 2001- all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads