public static enum Gram.Type extends Enum<Gram.Type>
Modifier and Type | Method and Description |
---|---|
String |
toString() |
static Gram.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Gram.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Gram.Type HEAD
public static final Gram.Type TAIL
public static final Gram.Type UNIGRAM
public static final Gram.Type NGRAM
public static Gram.Type[] values()
for (Gram.Type c : Gram.Type.values()) System.out.println(c);
public static Gram.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 nullCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.