public class Conflict<T extends OsmPrimitive> extends Object
OsmPrimitive
s. It is represented as
a pair of OsmPrimitive
s where one element of the pair has the role my
and the other has the role their.
my
is the OsmPrimitive
in the local datasettheir
is the OsmPrimitive
which caused the conflict when it
it was tried to merge it onto my
. their
is usually the
OsmPrimitive
from the dataset in another layer or the one retrieved from the server.Modifier and Type | Field and Description |
---|---|
private boolean |
isMyDeleted |
private Map<PrimitiveId,PrimitiveId> |
mergedMap |
private T |
my |
private T |
their |
Constructor and Description |
---|
Conflict(T my,
T their) |
Conflict(T my,
T their,
boolean isMyDeleted) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Map<PrimitiveId,PrimitiveId> |
getMergedMap() |
T |
getMy() |
T |
getTheir() |
int |
hashCode() |
boolean |
isMatchingMy(OsmPrimitive my) |
boolean |
isMatchingTheir(OsmPrimitive their) |
boolean |
isMyDeleted() |
boolean |
isParticipating(OsmPrimitive primitive)
Replies true if the primitive
primitive is participating
in this conflict |
boolean |
isParticipating(PrimitiveId id)
Replies true if the primitive with id
id is participating
in this conflict |
void |
setMergedMap(Map<PrimitiveId,PrimitiveId> mergedMap) |
String |
toString() |
private final T extends OsmPrimitive my
private final T extends OsmPrimitive their
private final boolean isMyDeleted
private Map<PrimitiveId,PrimitiveId> mergedMap
public boolean isMatchingMy(OsmPrimitive my)
public boolean isMatchingTheir(OsmPrimitive their)
public boolean isParticipating(OsmPrimitive primitive)
primitive
is participating
in this conflictprimitive
- the primitiveprimitive
is participating
in this conflictpublic boolean isParticipating(PrimitiveId id)
id
is participating
in this conflictid
- the primitive idprimitive
is participating
in this conflictpublic boolean isMyDeleted()
public final Map<PrimitiveId,PrimitiveId> getMergedMap()
public final void setMergedMap(Map<PrimitiveId,PrimitiveId> mergedMap)