org.easymock

Class LogicalOperator

public class LogicalOperator extends Enum<LogicalOperator>

See EasyMock
Field Summary
static LogicalOperatorEQUAL
static LogicalOperatorGREATER
static LogicalOperatorGREATER_OR_EQUAL
static LogicalOperatorLESS_OR_EQUAL
static LogicalOperatorLESS_THAN
static List<LogicalOperator>VALUES
An immutable list containing the values comprising this enum class in the order they're declared.
Method Summary
List<LogicalOperator>family()
Returns an immutable list containing the values comprising this enum class in the order they're declared.
StringgetSymbol()
booleanmatchResult(int result)
booleanmatchResult(int result)
booleanmatchResult(int result)
booleanmatchResult(int result)
booleanmatchResult(int result)
abstract booleanmatchResult(int result)
static LogicalOperatorvalueOf(String name)
Static factory to return the enum constant pertaining to the given string name.

Field Detail

EQUAL

public static final LogicalOperator EQUAL

GREATER

public static final LogicalOperator GREATER

GREATER_OR_EQUAL

public static final LogicalOperator GREATER_OR_EQUAL

LESS_OR_EQUAL

public static final LogicalOperator LESS_OR_EQUAL

LESS_THAN

public static final LogicalOperator LESS_THAN

VALUES

public static final List<LogicalOperator> VALUES
An immutable list containing the values comprising this enum class in the order they're declared. This field may be used to iterate over the constants as follows:
for(LogicalOperator c : LogicalOperator.VALUES)
    System.out.println(c);

Method Detail

family

public final List<LogicalOperator> family()
Returns an immutable list containing the values comprising this enum class in the order they're declared. This instance method simply returns VALUES. Few programmers should have any need to use this method. It is provided for use by sophisticated enum-based data structures to prevent the need for reflective access to VALUES.

Returns: an immutable list containing the values comprising this enum class, in the order they're declared.

getSymbol

public String getSymbol()

matchResult

public boolean matchResult(int result)

matchResult

public boolean matchResult(int result)

matchResult

public boolean matchResult(int result)

matchResult

public boolean matchResult(int result)

matchResult

public boolean matchResult(int result)

matchResult

public abstract boolean matchResult(int result)

valueOf

public static final LogicalOperator valueOf(String name)
Static factory to return the enum constant pertaining to the given string name. The string must match exactly an identifier used to declare an enum constant in this type.

Throws: IllegalArgumentException if this enum class has no constant with the specified name.

Copyright © 2001-2009 OFFIS, Tammo Freese, Henri Tremblay. This documentation is provided under the terms of the MIT licence.]]>