Class Conflict<T extends OsmPrimitive>

  • Type Parameters:
    T - primitive type of the conflict

    public class Conflict<T extends OsmPrimitive>
    extends java.lang.Object
    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.
    • my is the OsmPrimitive in the local dataset
    • their 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.
    Since:
    1750
    • Constructor Detail

      • Conflict

        public Conflict​(T my,
                        T their,
                        boolean isMyDeleted)
    • Method Detail

      • isParticipating

        public boolean isParticipating​(OsmPrimitive primitive)
        Replies true if the primitive primitive is participating in this conflict
        Parameters:
        primitive - the primitive
        Returns:
        true if the primitive primitive is participating in this conflict
      • isParticipating

        public boolean isParticipating​(PrimitiveId id)
        Replies true if the primitive with id id is participating in this conflict
        Parameters:
        id - the primitive id
        Returns:
        true if the primitive primitive is participating in this conflict
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • isMyDeleted

        public boolean 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.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object