@Status(stage=DEVELOPMENT, unitTests=COMPLETE) @Review(by="Kees Schotanus", at="2011-03-07") public enum RelationalValidationOperator extends Enum<RelationalValidationOperator>
Enum Constant and Description |
---|
EQUAL
Equal.
|
GREATER_THAN
Greater than.
|
GREATER_THAN_OR_EQUAL
Greater than or equal.
|
LESS_THAN
Less than.
|
LESS_THAN_OR_EQUAL
Less than or equal.
|
UNEQUAL
Unequal.
|
Modifier and Type | Method and Description |
---|---|
String |
toString()
Creates a String representation of this RelationalValidationOperator,
consisting of the mathematical representation.
|
abstract <T extends Comparable<? super T>> |
validate(T left,
T right)
Validates the left and right object against each other.
|
static RelationalValidationOperator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RelationalValidationOperator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RelationalValidationOperator EQUAL
public static final RelationalValidationOperator UNEQUAL
public static final RelationalValidationOperator GREATER_THAN
public static final RelationalValidationOperator GREATER_THAN_OR_EQUAL
public static final RelationalValidationOperator LESS_THAN
public static final RelationalValidationOperator LESS_THAN_OR_EQUAL
public static RelationalValidationOperator[] values()
for (RelationalValidationOperator c : RelationalValidationOperator.values()) System.out.println(c);
public static RelationalValidationOperator 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 abstract <T extends Comparable<? super T>> boolean validate(T left, T right)
T
- The Comparable type.left
- The value on the left of the relational operator.right
- The value on the right of the relational operator.NullPointerException
- When either left or right is null.public String toString()
toString
in class Enum<RelationalValidationOperator>
Copyright © 2008–2018. All rights reserved.