com.google.code.linkedinapi.client.enumeration
Enum SearchSortOrder

java.lang.Object
  extended by java.lang.Enum<SearchSortOrder>
      extended by com.google.code.linkedinapi.client.enumeration.SearchSortOrder
All Implemented Interfaces:
FieldEnum, java.io.Serializable, java.lang.Comparable<SearchSortOrder>

public enum SearchSortOrder
extends java.lang.Enum<SearchSortOrder>
implements FieldEnum

Author:
Nabeel Mukhtar

Enum Constant Summary
CONNECTIONS
          Number of connections per person, from largest to smallest.
DISTANCE
          Orders the returns based on the ascending degree of separation within a member's network, with first degree connections first.
RECOMMENDERS
          Orders the returns by number of ensorsers each of the search returns has.
RELEVANCE
          Orders the returns based on relevance for the keywords provided.
 
Field Summary
private  java.lang.String fieldName
          Field description
private static java.util.Map<java.lang.String,SearchSortOrder> stringToEnum
          Field Description.
 
Method Summary
 java.lang.String fieldName()
           
static SearchSortOrder fromString(java.lang.String symbol)
           
 java.lang.String toString()
          Method description
static SearchSortOrder valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SearchSortOrder[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CONNECTIONS

public static final SearchSortOrder CONNECTIONS
Number of connections per person, from largest to smallest.


RECOMMENDERS

public static final SearchSortOrder RECOMMENDERS
Orders the returns by number of ensorsers each of the search returns has.


DISTANCE

public static final SearchSortOrder DISTANCE
Orders the returns based on the ascending degree of separation within a member's network, with first degree connections first.


RELEVANCE

public static final SearchSortOrder RELEVANCE
Orders the returns based on relevance for the keywords provided.

Field Detail

stringToEnum

private static final java.util.Map<java.lang.String,SearchSortOrder> stringToEnum
Field Description.


fieldName

private final java.lang.String fieldName
Field description

Method Detail

values

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

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

valueOf

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

fieldName

public java.lang.String fieldName()
Specified by:
fieldName in interface FieldEnum
Returns:
the name of the field

toString

public java.lang.String toString()
Method description

Overrides:
toString in class java.lang.Enum<SearchSortOrder>
Returns:

fromString

public static SearchSortOrder fromString(java.lang.String symbol)
Returns:
Returns SearchSortOrder for string, or null if string is invalid