public class Polygon extends Object implements GjsonObject, Iterable<Point>
| Modifier and Type | Class and Description |
|---|---|
static class |
Polygon.Builder |
| Constructor and Description |
|---|
Polygon() |
Polygon(List<List<Point>> coordinates) |
Polygon(Polygon.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
Polygon |
decode(String geojson) |
org.json.JSONObject |
encode() |
Enumeration<Point> |
enumeration() |
static Polygon |
from(List<Point> points) |
List<List<Point>> |
getCoordinates() |
GjsonObjectType |
getType() |
boolean |
isValid() |
Iterator<Point> |
iterator() |
static Polygon |
newInstance() |
static Polygon |
of(List<List<Point>> points) |
static Polygon |
of(Point... points) |
static Polygon |
of(String geojson) |
void |
setCoordinates(List<List<Point>> coordinates) |
void |
setType(GjsonObjectType type) |
String |
toString() |
String |
toString(int offset) |
void |
validation() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic Polygon(Polygon.Builder builder)
builder - public Polygon()
public static final Polygon newInstance()
public Polygon decode(String geojson)
decode in interface GjsonObjectpublic org.json.JSONObject encode()
encode in interface GjsonObjectpublic Enumeration<Point> enumeration()
enumeration in interface GjsonObjectpublic boolean isValid()
isValid in interface GjsonObjectpublic void validation()
throws GjsonEncodeException
validation in interface GjsonObjectGjsonEncodeExceptionpublic String toString()
toString in interface GjsonObjecttoString in class Objectpublic String toString(int offset)
toString in interface GjsonObjectpublic GjsonObjectType getType()
getType in interface GjsonObjectpublic void setType(GjsonObjectType type)
setType in interface GjsonObjectCopyright © 2018 Terra Software Informatics LLC.. All rights reserved.