protected static class ShapeBuilder.CoordinateNode extends Object implements ToXContent
Can either be a leaf node consisting of a Coordinate, or a parent with children
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
protected List<ShapeBuilder.CoordinateNode> |
children |
protected com.vividsolutions.jts.geom.Coordinate |
coordinate |
EMPTY_PARAMS| Modifier | Constructor and Description |
|---|---|
protected |
ShapeBuilder.CoordinateNode(com.vividsolutions.jts.geom.Coordinate coordinate)
Creates a new leaf CoordinateNode
|
protected |
ShapeBuilder.CoordinateNode(List<ShapeBuilder.CoordinateNode> children)
Creates a new parent CoordinateNode
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isEmpty() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
protected final com.vividsolutions.jts.geom.Coordinate coordinate
protected final List<ShapeBuilder.CoordinateNode> children
protected ShapeBuilder.CoordinateNode(com.vividsolutions.jts.geom.Coordinate coordinate)
coordinate - Coordinate for the Nodeprotected ShapeBuilder.CoordinateNode(List<ShapeBuilder.CoordinateNode> children)
children - Children of the Nodeprotected boolean isEmpty()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionCopyright © 2009–2017. All rights reserved.