org.openstreetmap.josm.actions.search
Enum SearchAction.SearchMode
java.lang.Object
java.lang.Enum<SearchAction.SearchMode>
org.openstreetmap.josm.actions.search.SearchAction.SearchMode
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<SearchAction.SearchMode>
- Enclosing class:
- SearchAction
public static enum SearchAction.SearchMode
- extends java.lang.Enum<SearchAction.SearchMode>
Field Summary |
private char |
code
|
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
replace
public static final SearchAction.SearchMode replace
add
public static final SearchAction.SearchMode add
remove
public static final SearchAction.SearchMode remove
in_selection
public static final SearchAction.SearchMode in_selection
code
private final char code
values
public static SearchAction.SearchMode[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (SearchAction.SearchMode c : SearchAction.SearchMode.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static SearchAction.SearchMode valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
getCode
public char getCode()
fromCode
public static SearchAction.SearchMode fromCode(char code)
JOSM