Class UploadSelectionAction.UploadHullBuilder

  • All Implemented Interfaces:
    OsmPrimitiveVisitor
    Enclosing class:
    UploadSelectionAction

    static class UploadSelectionAction.UploadHullBuilder
    extends java.lang.Object
    implements OsmPrimitiveVisitor
    Computes the collection of primitives to upload, given a collection of candidate primitives. Some of the candidates are excluded, i.e. if they aren't modified. Other primitives are added. A typical case is a primitive which is new and and which is referred by a modified relation. In order to upload the relation the new primitive has to be uploaded as well, even if it isn't included in the list of candidate primitives.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Set<OsmPrimitive> hull  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<OsmPrimitive> build​(java.util.Collection<OsmPrimitive> base)
      Builds the "hull" of primitives to be uploaded given a base collection of osm primitives.
      void visit​(Node n)
      Visiting call for points.
      void visit​(Relation r)
      Visiting call for relations.
      void visit​(Way w)
      Visiting call for lines.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait