public enum SearchType extends Enum<SearchType>
Enum Constant and Description |
---|
BY_COMMON_NAME |
BY_QUERY |
BY_SCIENTIFIC_NAME |
Modifier and Type | Method and Description |
---|---|
String |
getId() |
String |
getName() |
static SearchType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SearchType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SearchType BY_SCIENTIFIC_NAME
public static final SearchType BY_COMMON_NAME
public static final SearchType BY_QUERY
public static SearchType[] values()
for (SearchType c : SearchType.values()) System.out.println(c);
public static SearchType 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 getId()
public String getName()
Copyright © 2016. All Rights Reserved.