com.simba.dsi.ext.aetree
Enum ComparisonType

java.lang.Object
  extended by java.lang.Enum<ComparisonType>
      extended by com.simba.dsi.ext.aetree.ComparisonType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ComparisonType>

public enum ComparisonType
extends java.lang.Enum<ComparisonType>

An enumeration class that defines a list of comparison operation types.


Enum Constant Summary
EQUAL
          EQUAL (=) comparison.
GREATER_THAN
          GREATER THAN (>) comparison.
GREATER_THAN_OR_EQUAL
          GREATER THAN or EQUAL TO (>=) comparison.
INVALID
          Invalid comparison type.
LESS_THAN
          LESS THAN (<) comparison.
LESS_THAN_OR_EQUAL
          LESS THAN or EQUAL TO (<=) comparison.
NOT_EQUAL
          NOT EQUAL (<>) comparison.
 
Method Summary
static ComparisonType getType(int identifier)
          Translate a integer identifier into a comparison type.
static ComparisonType reverse(ComparisonType type)
          Reverse the comparison operation type.
 java.lang.String toString()
           
static ComparisonType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ComparisonType[] 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

EQUAL

public static final ComparisonType EQUAL
EQUAL (=) comparison.


NOT_EQUAL

public static final ComparisonType NOT_EQUAL
NOT EQUAL (<>) comparison.


GREATER_THAN

public static final ComparisonType GREATER_THAN
GREATER THAN (>) comparison.


GREATER_THAN_OR_EQUAL

public static final ComparisonType GREATER_THAN_OR_EQUAL
GREATER THAN or EQUAL TO (>=) comparison.


LESS_THAN

public static final ComparisonType LESS_THAN
LESS THAN (<) comparison.


LESS_THAN_OR_EQUAL

public static final ComparisonType LESS_THAN_OR_EQUAL
LESS THAN or EQUAL TO (<=) comparison.


INVALID

public static final ComparisonType INVALID
Invalid comparison type. Mainly for initialization purpose.

Method Detail

values

public static ComparisonType[] 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 (ComparisonType c : ComparisonType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ComparisonType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getType

public static final ComparisonType getType(int identifier)
Translate a integer identifier into a comparison type.

Parameters:
identifier - The native ID defined in the C++ SEComparisonType enum. The ordinals of the ComparisonType enum in Java are all equal to those in C++.
Returns:
the comparison type for the given identifier.

reverse

public static final ComparisonType reverse(ComparisonType type)
Reverse the comparison operation type. The implementation uses the following rules,

Parameters:
type - The comparison type to reverse.
Returns:
The reversed comparison type.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<ComparisonType>
See Also:
Object.toString()


Copyright © 2006-2014 Simba Technologies Incorporated. All Rights Reserved.