protected static class ShapeBuilder.CoordinateNode extends java.lang.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 java.util.List<ShapeBuilder.CoordinateNode> |
children |
protected com.vividsolutions.jts.geom.Coordinate |
coordinate |
EMPTY_PARAMS
Modifier | Constructor and Description |
---|---|
protected |
CoordinateNode(com.vividsolutions.jts.geom.Coordinate coordinate)
Creates a new leaf CoordinateNode
|
protected |
CoordinateNode(java.util.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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isFragment
protected final com.vividsolutions.jts.geom.Coordinate coordinate
protected final java.util.List<ShapeBuilder.CoordinateNode> children
protected CoordinateNode(com.vividsolutions.jts.geom.Coordinate coordinate)
coordinate
- Coordinate for the Nodeprotected CoordinateNode(java.util.List<ShapeBuilder.CoordinateNode> children)
children
- Children of the Nodeprotected boolean isEmpty()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException