public static enum Topic.Type extends Enum<Topic.Type>
| Enum Constant and Description |
|---|
ARTIST |
EVENT |
PERSON |
PLACE |
PRODUCT |
SUBJECT |
UNKNOWN |
WORK |
| Modifier and Type | Field and Description |
|---|---|
static Map<String,Topic.Type> |
TYPE_KEY_LOOKUP
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.collect.ImmutableSet<Topic.Type> |
all() |
static com.google.common.base.Function<String,com.google.common.base.Optional<Topic.Type>> |
fromKey() |
static Topic.Type |
fromKey(String key) |
static Topic.Type |
fromKey(String key,
Topic.Type deflt) |
String |
key() |
static com.google.common.base.Function<Topic.Type,String> |
toKey() |
String |
toString() |
static Topic.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Topic.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Topic.Type SUBJECT
public static final Topic.Type PERSON
public static final Topic.Type PLACE
public static final Topic.Type ARTIST
public static final Topic.Type EVENT
public static final Topic.Type PRODUCT
public static final Topic.Type WORK
public static final Topic.Type UNKNOWN
@Deprecated public static Map<String,Topic.Type> TYPE_KEY_LOOKUP
public static Topic.Type[] values()
for (Topic.Type c : Topic.Type.values()) System.out.println(c);
public static Topic.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 key()
public String toString()
toString in class Enum<Topic.Type>public static final com.google.common.base.Function<Topic.Type,String> toKey()
public static final com.google.common.collect.ImmutableSet<Topic.Type> all()
public static final com.google.common.base.Function<String,com.google.common.base.Optional<Topic.Type>> fromKey()
public static Topic.Type fromKey(String key)
public static Topic.Type fromKey(String key, Topic.Type deflt)
Copyright © 2014. All rights reserved.