Class Conflict<T extends OsmPrimitive>
java.lang.Object
org.openstreetmap.josm.data.conflict.Conflict<T>
- Type Parameters:
T- primitive type of the conflict
Represents a conflict between two
OsmPrimitives. It is represented as
a pair of OsmPrimitives where one element of the pair has the role my
and the other has the role their.
myis theOsmPrimitivein the local datasettheiris theOsmPrimitivewhich caused the conflict when it it was tried to merge it ontomy.theiris usually theOsmPrimitivefrom the dataset in another layer or the one retrieved from the server.
- Since:
- 1750
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate Map<PrimitiveId,PrimitiveId> private final Tprivate final T -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanfinal Map<PrimitiveId,PrimitiveId> getMy()getTheir()inthashCode()booleanbooleanisMatchingTheir(OsmPrimitive their) booleanDetermines if my primitive was deleted but it has set non deleted status.booleanisParticipating(OsmPrimitive primitive) Replies true if the primitiveprimitiveis participating in this conflictbooleanReplies true if the primitive with ididis participating in this conflictfinal voidsetMergedMap(Map<PrimitiveId, PrimitiveId> mergedMap) toString()
-
Field Details
-
my
-
their
-
isMyDeleted
-
mergedMap
-
-
Constructor Details
-
Conflict
-
Conflict
-
-
Method Details
-
getMy
-
getTheir
-
isMatchingMy
-
isMatchingTheir
-
isParticipating
Replies true if the primitiveprimitiveis participating in this conflict- Parameters:
primitive- the primitive- Returns:
- true if the primitive
primitiveis participating in this conflict
-
isParticipating
Replies true if the primitive with ididis participating in this conflict- Parameters:
id- the primitive id- Returns:
- true if the primitive
primitiveis participating in this conflict
-
hashCode
-
equals
-
isMyDeleted
Determines if my primitive was deleted but it has set non deleted status.- Returns:
- True if my primitive was deleted but it has set non deleted status because it's referred by another primitive and references to deleted primitives are not allowed.
-
getMergedMap
-
setMergedMap
-
toString
-