public enum ComparePairType extends Enum<ComparePairType>
Enum Constant and Description |
---|
MY_WITH_MERGED
compare my version of an
OsmPrimitive with the merged version |
MY_WITH_THEIR
compare my version of an
OsmPrimitive with their version |
THEIR_WITH_MERGED
compare their version of an
OsmPrimitive with the merged veresion |
Modifier and Type | Field and Description |
---|---|
private String |
displayName
the localized display name
|
private ListRole[] |
participatingRoles |
Modifier and Type | Method and Description |
---|---|
String |
getDisplayName()
replies the display name
|
ListRole |
getOppositeRole(ListRole role)
replies the opposite role of
role participating in this comparison
pair |
ListRole[] |
getParticipatingRoles()
replies the pair of
ListRole s participating in this comparison
pair |
boolean |
isParticipatingIn(ListRole role)
replies true, if
role is participating in this comparison
pair |
static ComparePairType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ComparePairType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ComparePairType MY_WITH_THEIR
OsmPrimitive
with their versionpublic static final ComparePairType MY_WITH_MERGED
OsmPrimitive
with the merged versionpublic static final ComparePairType THEIR_WITH_MERGED
OsmPrimitive
with the merged veresionprivate final String displayName
private ListRole[] participatingRoles
public static ComparePairType[] values()
for (ComparePairType c : ComparePairType.values()) System.out.println(c);
public static ComparePairType 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 getDisplayName()
public boolean isParticipatingIn(ListRole role)
role
is participating in this comparison
pairrole
- the list rolerole
is participating in this comparison
pair; false, otherwisepublic ListRole[] getParticipatingRoles()
ListRole
s participating in this comparison
pairpublic ListRole getOppositeRole(ListRole role)
role
participating in this comparison
pairrole
- one of the two roles in this pairIllegalStateException
- if role is not participating in this pair