org.springframework.social.twitter.api
Enum ResourceFamily
java.lang.Object
java.lang.Enum<ResourceFamily>
org.springframework.social.twitter.api.ResourceFamily
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<ResourceFamily>
public enum ResourceFamily
- extends java.lang.Enum<ResourceFamily>
An enum to facilitate the use of the rate_limit_status endpoint by enumerating all of the resource
families that can be searched via the API
- Author:
- Jeremy Appel
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 |
ACCOUNT
public static final ResourceFamily ACCOUNT
APPLICATION
public static final ResourceFamily APPLICATION
BLOCKS
public static final ResourceFamily BLOCKS
DIRECT_MESSAGES
public static final ResourceFamily DIRECT_MESSAGES
FOLLOWERS
public static final ResourceFamily FOLLOWERS
FRIENDS
public static final ResourceFamily FRIENDS
FRIENDSHIPS
public static final ResourceFamily FRIENDSHIPS
GEO
public static final ResourceFamily GEO
HELP
public static final ResourceFamily HELP
LISTS
public static final ResourceFamily LISTS
SAVED_SEARCHES
public static final ResourceFamily SAVED_SEARCHES
SEARCH
public static final ResourceFamily SEARCH
STATUSES
public static final ResourceFamily STATUSES
TRENDS
public static final ResourceFamily TRENDS
USERS
public static final ResourceFamily USERS
values
public static ResourceFamily[] 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 (ResourceFamily c : ResourceFamily.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ResourceFamily 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
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Enum<ResourceFamily>
getResourceFamily
public static ResourceFamily getResourceFamily(java.lang.String name)