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:
Serializable, Comparable<Operator>

@Immutable
@PublicApi
public enum Operator
extends Enum<Operator>

Represents the query operators.


Enum Constant Summary
AFTER
           
BEFORE
           
BY
           
CHANGED
           
DURING
           
EQUALS
           
FROM
           
GREATER_THAN
           
GREATER_THAN_EQUALS
           
IN
           
IS
           
IS_NOT
           
LESS_THAN
           
LESS_THAN_EQUALS
           
LIKE
           
NOT_CHANGED
           
NOT_EQUALS
           
NOT_IN
           
NOT_LIKE
           
ON
           
TO
           
WAS
           
WAS_IN
           
WAS_NOT
           
WAS_NOT_IN
           
 
Method Summary
 String getDisplayString()
           
abstract
<T> Predicate<T>
getPredicateForValue(Comparator<? super T> comparator, T operand)
           
static Operator valueOf(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

WAS

public static final Operator WAS

WAS_NOT

public static final Operator WAS_NOT

WAS_IN

public static final Operator WAS_IN

WAS_NOT_IN

public static final Operator WAS_NOT_IN

CHANGED

public static final Operator CHANGED

NOT_CHANGED

public static final Operator NOT_CHANGED

BEFORE

public static final Operator BEFORE

AFTER

public static final Operator AFTER

FROM

public static final Operator FROM

TO

public static final Operator TO

ON

public static final Operator ON

DURING

public static final Operator DURING

BY

public static final Operator BY
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(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
NullPointerException - if the argument is null

getDisplayString

public String getDisplayString()

getPredicateForValue

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


Copyright © 2002-2014 Atlassian. All Rights Reserved.