Enum NoteComment.Action
- java.lang.Object
-
- java.lang.Enum<NoteComment.Action>
-
- org.openstreetmap.josm.data.notes.NoteComment.Action
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<NoteComment.Action>
- Enclosing class:
- NoteComment
public static enum NoteComment.Action extends java.lang.Enum<NoteComment.Action>
Every comment has an associated action. Some comments are just comments while others indicate the note being opened, closed or reopened
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Action()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NoteComment.Action
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static NoteComment.Action[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OPENED
public static final NoteComment.Action OPENED
note has been opened
-
CLOSED
public static final NoteComment.Action CLOSED
note has been closed
-
REOPENED
public static final NoteComment.Action REOPENED
note has been reopened
-
COMMENTED
public static final NoteComment.Action COMMENTED
note has been commented
-
HIDDEN
public static final NoteComment.Action HIDDEN
note has been hidden
-
-
Constructor Detail
-
Action
private Action()
-
-
Method Detail
-
values
public static NoteComment.Action[] 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 (NoteComment.Action c : NoteComment.Action.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NoteComment.Action 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 namejava.lang.NullPointerException
- if the argument is null
-
-