com.atlassian.query.operator
Enum Operator

java.lang.Object
  extended by java.lang.Enum<Operator>
      extended by com.atlassian.query.operator.Operator
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Operator>

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

Represents the query operators.


Enum Constant Summary
EQUALS
           
GREATER_THAN
           
GREATER_THAN_EQUALS
           
IN
           
IS
           
IS_NOT
           
LESS_THAN
           
LESS_THAN_EQUALS
           
LIKE
           
NOT_EQUALS
           
NOT_IN
           
NOT_LIKE
           
 
Method Summary
 java.lang.String getDisplayString()
           
abstract
<T> Predicate<T>
getPredicateForValue(java.util.Comparator<? super T> comparator, T operand)
           
static Operator valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Operator[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LIKE

public static final Operator LIKE

NOT_LIKE

public static final Operator NOT_LIKE

EQUALS

public static final Operator EQUALS

NOT_EQUALS

public static final Operator NOT_EQUALS

IN

public static final Operator IN

NOT_IN

public static final Operator NOT_IN

IS

public static final Operator IS

IS_NOT

public static final Operator IS_NOT

LESS_THAN

public static final Operator LESS_THAN

LESS_THAN_EQUALS

public static final Operator LESS_THAN_EQUALS

GREATER_THAN

public static final Operator GREATER_THAN

GREATER_THAN_EQUALS

public static final Operator GREATER_THAN_EQUALS
Method Detail

values

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

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

valueOf

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

getDisplayString

public java.lang.String getDisplayString()

getPredicateForValue

public abstract <T> Predicate<T> getPredicateForValue(java.util.Comparator<? super T> comparator,
                                                      T operand)


Copyright © 2002-2010 Atlassian. All Rights Reserved.