public class Point extends Object implements GjsonObject
| Modifier and Type | Class and Description |
|---|---|
static class |
Point.Builder |
| Constructor and Description |
|---|
Point() |
Point(BigDecimal lat,
BigDecimal lon) |
Point(Double lat,
Double lon) |
Point(Point.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
Point |
decode(String geojson) |
org.json.JSONObject |
encode() |
Enumeration<Point> |
enumeration() |
BigDecimal |
getLat() |
BigDecimal |
getLon() |
GjsonObjectType |
getType() |
boolean |
isValid() |
static Point |
newInstance() |
static Point |
of(BigDecimal lat,
BigDecimal lon) |
static Point |
of(Double lat,
Double lon) |
static Point |
of(String geojson) |
void |
setLat(BigDecimal lat) |
void |
setLat(Double lat) |
void |
setLon(BigDecimal lon) |
void |
setLon(Double lon) |
void |
setType(GjsonObjectType type) |
String |
toString() |
String |
toString(int offset) |
void |
validation() |
public Point(BigDecimal lat, BigDecimal lon)
lat - lon - public Point(Point.Builder builder)
builder - public Point()
public static final Point of(BigDecimal lat, BigDecimal lon)
lat - lon - public static final Point newInstance()
public Point 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 GjsonObjectType getType()
getType in interface GjsonObjectpublic void setType(GjsonObjectType type)
setType in interface GjsonObjectpublic String toString(int offset)
toString in interface GjsonObjectpublic String toString()
toString in interface GjsonObjecttoString in class Objectpublic void setLat(Double lat)
lat - public BigDecimal getLat()
public void setLat(BigDecimal lat)
lat - public BigDecimal getLon()
public void setLon(Double lon)
lon - public void setLon(BigDecimal lon)
lon - Copyright © 2018 Terra Software Informatics LLC.. All rights reserved.