public enum ResourceType extends Enum<ResourceType>
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.collect.ImmutableSet<ResourceType> |
all() |
static com.google.common.base.Optional<ResourceType> |
fromIdentified(Identified Identified) |
static com.google.common.base.Function<Class<? extends Identified>,com.google.common.base.Optional<ResourceType>> |
fromIdentifiedClass() |
static com.google.common.base.Function<String,com.google.common.base.Optional<ResourceType>> |
fromKey() |
static com.google.common.base.Optional<ResourceType> |
fromKey(String key) |
Class<? extends Identified> |
getIdentifiedClass() |
String |
getKey() |
static com.google.common.base.Function<ResourceType,Class<? extends Identified>> |
toIdentifiedClass() |
static com.google.common.base.Function<ResourceType,String> |
toKey() |
String |
toString() |
static ResourceType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResourceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResourceType CONTENT
public static final ResourceType TOPIC
public static ResourceType[] values()
for (ResourceType c : ResourceType.values()) System.out.println(c);
public static ResourceType 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 Class<? extends Identified> getIdentifiedClass()
public String toString()
toString in class Enum<ResourceType>public static final com.google.common.base.Function<ResourceType,String> toKey()
public static final com.google.common.collect.ImmutableSet<ResourceType> all()
public static final com.google.common.base.Optional<ResourceType> fromKey(String key)
public static final com.google.common.base.Function<String,com.google.common.base.Optional<ResourceType>> fromKey()
public static final com.google.common.base.Function<ResourceType,Class<? extends Identified>> toIdentifiedClass()
public static final com.google.common.base.Optional<ResourceType> fromIdentified(Identified Identified)
public static final com.google.common.base.Function<Class<? extends Identified>,com.google.common.base.Optional<ResourceType>> fromIdentifiedClass()
Copyright © 2014. All rights reserved.