com.evernote.edam.type
Enum NoteSortOrder

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

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

This enumeration defines the possible sort ordering for notes when they are returned from a search result.


Enum Constant Summary
CREATED
           
RELEVANCE
           
TITLE
           
UPDATE_SEQUENCE_NUMBER
           
UPDATED
           
 
Method Summary
static NoteSortOrder 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 NoteSortOrder valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static NoteSortOrder[] 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

CREATED

public static final NoteSortOrder CREATED

UPDATED

public static final NoteSortOrder UPDATED

RELEVANCE

public static final NoteSortOrder RELEVANCE

UPDATE_SEQUENCE_NUMBER

public static final NoteSortOrder UPDATE_SEQUENCE_NUMBER

TITLE

public static final NoteSortOrder TITLE
Method Detail

values

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

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

valueOf

public static NoteSortOrder 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 NoteSortOrder 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.