Package com.twitter.clientlib.model
Class Point
- java.lang.Object
-
- com.twitter.clientlib.model.Point
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class Point extends Object
A [GeoJson Point](https://tools.ietf.org/html/rfc7946#section-3.1.2) geometry object.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Point.CustomTypeAdapterFactory
static class
Point.TypeEnum
Gets or Sets type
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>
openapiFields
static HashSet<String>
openapiRequiredFields
static String
SERIALIZED_NAME_COORDINATES
static String
SERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description Point()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Point
addCoordinatesItem(BigDecimal coordinatesItem)
Point
coordinates(List<BigDecimal> coordinates)
boolean
equals(Object o)
static Point
fromJson(String jsonString)
Create an instance of Point given an JSON stringList<BigDecimal>
getCoordinates()
A [GeoJson Position](https://tools.ietf.org/html/rfc7946#section-3.1.1) in the format `[longitude,latitude]`.Point.TypeEnum
getType()
Get typeint
hashCode()
void
setCoordinates(List<BigDecimal> coordinates)
void
setType(Point.TypeEnum type)
String
toJson()
Convert an instance of Point to an JSON stringString
toString()
Point
type(Point.TypeEnum type)
static void
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_COORDINATES
public static final String SERIALIZED_NAME_COORDINATES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
coordinates
public Point coordinates(List<BigDecimal> coordinates)
-
addCoordinatesItem
public Point addCoordinatesItem(BigDecimal coordinatesItem)
-
getCoordinates
@Nonnull public List<BigDecimal> getCoordinates()
A [GeoJson Position](https://tools.ietf.org/html/rfc7946#section-3.1.1) in the format `[longitude,latitude]`.- Returns:
- coordinates
-
setCoordinates
public void setCoordinates(List<BigDecimal> coordinates)
-
type
public Point type(Point.TypeEnum type)
-
getType
@Nonnull public Point.TypeEnum getType()
Get type- Returns:
- type
-
setType
public void setType(Point.TypeEnum type)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj
- JSON Object- Throws:
IOException
- if the JSON Object is invalid with respect to Point
-
fromJson
public static Point fromJson(String jsonString) throws IOException
Create an instance of Point given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of Point
- Throws:
IOException
- if the JSON string is invalid with respect to Point
-
toJson
public String toJson()
Convert an instance of Point to an JSON string- Returns:
- JSON string
-
-