com.kii.sdk.photocolle
Enum SortType

java.lang.Object
  extended by java.lang.Enum<SortType>
      extended by com.kii.sdk.photocolle.SortType
All Implemented Interfaces:
Serializable, Comparable<SortType>

public enum SortType
extends Enum<SortType>

The type of sort.


Enum Constant Summary
CREATION_DATETIME_ASC
          Sort of ascending order by creation date time
CREATION_DATETIME_DESC
          Sort of descending order by creation date time
MODIFICATION_DATETIME_ASC
          Sort of ascending order by modification date time
MODIFICATION_DATETIME_DESC
          Sort of descending order by modification date time
SCORE_DESC
          Sort of descending order by score.
UPLOAD_DATETIME_ASC
          Sort of ascending order by upload date time
UPLOAD_DATETIME_DESC
          Sort of descending order by upload date time
 
Method Summary
 int getNumber()
          Get number of type.
static SortType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SortType[] 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

CREATION_DATETIME_DESC

public static final SortType CREATION_DATETIME_DESC
Sort of descending order by creation date time


CREATION_DATETIME_ASC

public static final SortType CREATION_DATETIME_ASC
Sort of ascending order by creation date time


MODIFICATION_DATETIME_DESC

public static final SortType MODIFICATION_DATETIME_DESC
Sort of descending order by modification date time


MODIFICATION_DATETIME_ASC

public static final SortType MODIFICATION_DATETIME_ASC
Sort of ascending order by modification date time


UPLOAD_DATETIME_ASC

public static final SortType UPLOAD_DATETIME_ASC
Sort of ascending order by upload date time


UPLOAD_DATETIME_DESC

public static final SortType UPLOAD_DATETIME_DESC
Sort of descending order by upload date time


SCORE_DESC

public static final SortType SCORE_DESC
Sort of descending order by score.

Method Detail

values

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

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

valueOf

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

getNumber

public int getNumber()
Get number of type.

Returns:
number of type.