org.eigenbase.sarg
Enum SargSetOperator

java.lang.Object
  extended by java.lang.Enum<SargSetOperator>
      extended by org.eigenbase.sarg.SargSetOperator
All Implemented Interfaces:
Serializable, Comparable<SargSetOperator>

public enum SargSetOperator
extends Enum<SargSetOperator>

SargSetOperator defines the supported set operators which can be used to combine instances of SargExpr.

Version:
$Id: //open/dev/farrago/src/org/eigenbase/sarg/SargSetOperator.java#8 $
Author:
John V. Sichi

Enum Constant Summary
COMPLEMENT
          Set complement over exactly one child.
INTERSECTION
          Set intersection over any number of children (no children => universal set).
UNION
          Set union over any number of children (no children => empty set).
 
Method Summary
static SargSetOperator valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SargSetOperator[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INTERSECTION

public static final SargSetOperator INTERSECTION
Set intersection over any number of children (no children => universal set).


UNION

public static final SargSetOperator UNION
Set union over any number of children (no children => empty set).


COMPLEMENT

public static final SargSetOperator COMPLEMENT
Set complement over exactly one child.

Method Detail

values

public static final SargSetOperator[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(SargSetOperator c : SargSetOperator.values())
        System.out.println(c);

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

valueOf

public static SargSetOperator 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