org.jickr
Enum PhotoSearch.Sort

java.lang.Object
  extended by java.lang.Enum<PhotoSearch.Sort>
      extended by org.jickr.PhotoSearch.Sort
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PhotoSearch.Sort>
Enclosing class:
PhotoSearch

public static enum PhotoSearch.Sort
extends java.lang.Enum<PhotoSearch.Sort>

The order to sort returned Photos for a PhotoSearch. Used to create search conditions via PhotoSearch.setSort(Sort)

See Also:
PhotoSearch.setSort(Sort)

Enum Constant Summary
INTERESTING_ASC
          Ordered by Interestingness, ascending.
INTERESTING_DESC
          Ordered by Interestingness, descending.
POST_ASC
          Ordered by Date Posted, ascending order.
POST_DESC
          Ordered by Date Posted, descending order.
RELEVANCE
          Ordered in the way that Flickr thinks is most relevant to the search.
TAKEN_ASC
          Ordered by Date Taken, ascending order.
TAKEN_DESC
          Ordered by Date Taken, descending order.
 
Method Summary
static PhotoSearch.Sort valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PhotoSearch.Sort[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

POST_ASC

public static final PhotoSearch.Sort POST_ASC
Ordered by Date Posted, ascending order.


POST_DESC

public static final PhotoSearch.Sort POST_DESC
Ordered by Date Posted, descending order. This is the default if unset.


TAKEN_ASC

public static final PhotoSearch.Sort TAKEN_ASC
Ordered by Date Taken, ascending order.


TAKEN_DESC

public static final PhotoSearch.Sort TAKEN_DESC
Ordered by Date Taken, descending order.


INTERESTING_DESC

public static final PhotoSearch.Sort INTERESTING_DESC
Ordered by Interestingness, descending.


INTERESTING_ASC

public static final PhotoSearch.Sort INTERESTING_ASC
Ordered by Interestingness, ascending.


RELEVANCE

public static final PhotoSearch.Sort RELEVANCE
Ordered in the way that Flickr thinks is most relevant to the search.

Method Detail

values

public static final PhotoSearch.Sort[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(PhotoSearch.Sort c : PhotoSearch.Sort.values())
        System.out.println(c);

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

valueOf

public static PhotoSearch.Sort 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