public static enum SubscriptionEntry.Type extends java.lang.Enum<SubscriptionEntry.Type>
| Enum Constant and Description |
|---|
CHANNEL |
FAVORITES |
PLAYLIST |
QUERY |
USER |
| Modifier and Type | Method and Description |
|---|---|
static SubscriptionEntry.Type |
fromTerm(java.lang.String term)
Given a term of a category with scheme
YouTubeNamespace.KIND_SUBSCRIPTION, look for
the corresponding Type enum value. |
java.lang.String |
getTerm()
Gets the category term corresponding to this subscription
type.
|
static SubscriptionEntry.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SubscriptionEntry.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SubscriptionEntry.Type CHANNEL
public static final SubscriptionEntry.Type FAVORITES
public static final SubscriptionEntry.Type QUERY
public static final SubscriptionEntry.Type PLAYLIST
public static final SubscriptionEntry.Type USER
public static SubscriptionEntry.Type[] values()
for (SubscriptionEntry.Type c : SubscriptionEntry.Type.values()) System.out.println(c);
public static SubscriptionEntry.Type valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getTerm()
public static SubscriptionEntry.Type fromTerm(java.lang.String term)
YouTubeNamespace.KIND_SUBSCRIPTION, look for
the corresponding Type enum value.