public static enum SubscriptionEntry.Type extends Enum<SubscriptionEntry.Type>
| Enum Constant and Description |
|---|
CHANNEL |
FAVORITES |
PLAYLIST |
QUERY |
USER |
| Modifier and Type | Method and Description |
|---|---|
static SubscriptionEntry.Type |
fromTerm(String term)
Given a term of a category with scheme
YouTubeNamespace.KIND_SUBSCRIPTION, look for
the corresponding Type enum value. |
String |
getTerm()
Gets the category term corresponding to this subscription
type.
|
static SubscriptionEntry.Type |
valueOf(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(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic String getTerm()
public static SubscriptionEntry.Type fromTerm(String term)
YouTubeNamespace.KIND_SUBSCRIPTION, look for
the corresponding Type enum value.Copyright © 2012. All Rights Reserved.