T
- primitive type of the conflictpublic class Conflict<T extends OsmPrimitive> extends java.lang.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 java.util.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(java.lang.Object obj) |
java.util.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(java.util.Map<PrimitiveId,PrimitiveId> mergedMap) |
java.lang.String |
toString() |
private final T extends OsmPrimitive my
private final T extends OsmPrimitive their
private final boolean isMyDeleted
private java.util.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 int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean isMyDeleted()
public final java.util.Map<PrimitiveId,PrimitiveId> getMergedMap()
public final void setMergedMap(java.util.Map<PrimitiveId,PrimitiveId> mergedMap)
public java.lang.String toString()
toString
in class java.lang.Object