public enum ContentType extends Enum<ContentType>
| Enum Constant and Description |
|---|
BRAND |
CLIP |
EPISODE |
FILM |
ITEM |
SERIES |
SONG |
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.collect.ImmutableSet<ContentType> |
all() |
static com.google.common.base.Optional<ContentType> |
fromContent(Content content) |
static com.google.common.base.Function<Class<? extends Content>,com.google.common.base.Optional<ContentType>> |
fromContentClass() |
static com.google.common.base.Function<String,com.google.common.base.Optional<ContentType>> |
fromKey() |
static com.google.common.base.Optional<ContentType> |
fromKey(String key) |
Class<? extends Content> |
getContentClass() |
String |
getKey() |
static com.google.common.base.Function<ContentType,Class<? extends Content>> |
toContentClass() |
static com.google.common.base.Function<ContentType,String> |
toKey() |
String |
toString() |
static ContentType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ContentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ContentType BRAND
public static final ContentType SERIES
public static final ContentType ITEM
public static final ContentType EPISODE
public static final ContentType FILM
public static final ContentType SONG
public static final ContentType CLIP
public static ContentType[] values()
for (ContentType c : ContentType.values()) System.out.println(c);
public static ContentType 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 getKey()
public String toString()
toString in class Enum<ContentType>public static final com.google.common.base.Function<ContentType,String> toKey()
public static final com.google.common.collect.ImmutableSet<ContentType> all()
public static final com.google.common.base.Optional<ContentType> fromKey(String key)
public static final com.google.common.base.Function<String,com.google.common.base.Optional<ContentType>> fromKey()
public static final com.google.common.base.Function<ContentType,Class<? extends Content>> toContentClass()
public static final com.google.common.base.Optional<ContentType> fromContent(Content content)
public static final com.google.common.base.Function<Class<? extends Content>,com.google.common.base.Optional<ContentType>> fromContentClass()
Copyright © 2014. All rights reserved.