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 classPoint.CustomTypeAdapterFactorystatic classPoint.TypeEnumGets or Sets type
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_COORDINATESstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description Point()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PointaddCoordinatesItem(BigDecimal coordinatesItem)Pointcoordinates(List<BigDecimal> coordinates)booleanequals(Object o)static PointfromJson(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.TypeEnumgetType()Get typeinthashCode()voidsetCoordinates(List<BigDecimal> coordinates)voidsetType(Point.TypeEnum type)StringtoJson()Convert an instance of Point to an JSON stringStringtoString()Pointtype(Point.TypeEnum type)static voidvalidateJsonObject(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 IOExceptionValidates 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
-
-