com.evernote.edam.type
Enum QueryFormat

java.lang.Object
  extended by java.lang.Enum<QueryFormat>
      extended by com.evernote.edam.type.QueryFormat
All Implemented Interfaces:
com.evernote.thrift.TEnum, java.io.Serializable, java.lang.Comparable<QueryFormat>

public enum QueryFormat
extends java.lang.Enum<QueryFormat>
implements com.evernote.thrift.TEnum

Every search query is specified as a sequence of characters. Currently, only the USER query format is supported.


Enum Constant Summary
SEXP
           
USER
           
 
Method Summary
static QueryFormat findByValue(int value)
          Find a the enum type by its integer value, as defined in the Thrift IDL.
 int getValue()
          Get the integer value of this enum value, as defined in the Thrift IDL.
static QueryFormat valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static QueryFormat[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

USER

public static final QueryFormat USER

SEXP

public static final QueryFormat SEXP
Method Detail

values

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

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

valueOf

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

getValue

public int getValue()
Get the integer value of this enum value, as defined in the Thrift IDL.

Specified by:
getValue in interface com.evernote.thrift.TEnum

findByValue

public static QueryFormat findByValue(int value)
Find a the enum type by its integer value, as defined in the Thrift IDL.

Returns:
null if the value is not found.