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)
OsmPrimitiveVisitorvisit in interface OsmPrimitiveVisitorn - The node to inspect.public void visit(Way w)
OsmPrimitiveVisitorvisit in interface OsmPrimitiveVisitorw - The way to inspect.public void visit(Relation r)
OsmPrimitiveVisitorvisit in interface OsmPrimitiveVisitorr - 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