static class UploadSelectionAction.UploadHullBuilder extends java.lang.Object implements OsmPrimitiveVisitor
Modifier and Type | Field and Description |
---|---|
private java.util.Set<OsmPrimitive> |
hull |
Constructor and Description |
---|
UploadHullBuilder() |
Modifier and Type | Method and 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.
|
private java.util.Set<OsmPrimitive> hull
UploadHullBuilder()
public void visit(Node n)
OsmPrimitiveVisitor
visit
in interface OsmPrimitiveVisitor
n
- The node to inspect.public void visit(Way w)
OsmPrimitiveVisitor
visit
in interface OsmPrimitiveVisitor
w
- The way to inspect.public void visit(Relation r)
OsmPrimitiveVisitor
visit
in interface OsmPrimitiveVisitor
r
- The relation to inspect.public java.util.Set<OsmPrimitive> build(java.util.Collection<OsmPrimitive> base)
base
- the base collection. Must not be null.java.lang.IllegalArgumentException
- if base is null