Enum MultiValueDecisionType
- java.lang.Object
-
- java.lang.Enum<MultiValueDecisionType>
-
- org.openstreetmap.josm.gui.conflict.tags.MultiValueDecisionType
-
- All Implemented Interfaces:
Serializable
,Comparable<MultiValueDecisionType>
public enum MultiValueDecisionType extends Enum<MultiValueDecisionType>
Represents a decision for a tag conflict due to multiple possible values.- Since:
- 2008
-
-
Enum Constant Summary
Enum Constants Enum Constant Description KEEP_ALL
keep all values; concatenate them with ;KEEP_NONE
keep no value, delete the tagKEEP_ONE
keep exactly one valuesSUM_ALL_NUMERIC
sum all numeric values; only available for a few keys (eg: capacity)UNDECIDED
not yet decided
-
Constructor Summary
Constructors Modifier Constructor Description private
MultiValueDecisionType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MultiValueDecisionType
valueOf(String name)
Returns the enum constant of this type with the specified name.static MultiValueDecisionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNDECIDED
public static final MultiValueDecisionType UNDECIDED
not yet decided
-
KEEP_ONE
public static final MultiValueDecisionType KEEP_ONE
keep exactly one values
-
SUM_ALL_NUMERIC
public static final MultiValueDecisionType SUM_ALL_NUMERIC
sum all numeric values; only available for a few keys (eg: capacity)
-
KEEP_NONE
public static final MultiValueDecisionType KEEP_NONE
keep no value, delete the tag
-
KEEP_ALL
public static final MultiValueDecisionType KEEP_ALL
keep all values; concatenate them with ;
-
-
Constructor Detail
-
MultiValueDecisionType
private MultiValueDecisionType()
-
-
Method Detail
-
values
public static MultiValueDecisionType[] 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 (MultiValueDecisionType c : MultiValueDecisionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MultiValueDecisionType valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-