@Generated(value="com.linkedin.pegasus.generator.JavaCodeUtil",
comments="Rest.li Data Template. Generated from restli-example-api/src/main/pegasus/com/linkedin/restli/example/LatLong.pdsc.")
public class LatLong
extends com.linkedin.data.template.RecordTemplate
| Modifier and Type | Class and Description |
|---|---|
static class |
LatLong.Fields |
| Constructor and Description |
|---|
LatLong() |
LatLong(com.linkedin.data.DataMap data) |
| Modifier and Type | Method and Description |
|---|---|
LatLong |
clone() |
LatLong |
copy() |
static LatLong.Fields |
fields() |
java.lang.Float |
getLatitude()
Getter for latitude
|
java.lang.Float |
getLatitude(com.linkedin.data.template.GetMode mode)
Getter for latitude
|
java.lang.Float |
getLongitude()
Getter for longitude
|
java.lang.Float |
getLongitude(com.linkedin.data.template.GetMode mode)
Getter for longitude
|
boolean |
hasLatitude()
Existence checker for latitude
|
boolean |
hasLongitude()
Existence checker for longitude
|
void |
removeLatitude()
Remover for latitude
|
void |
removeLongitude()
Remover for longitude
|
LatLong |
setLatitude(float value)
Setter for latitude
|
LatLong |
setLatitude(java.lang.Float value)
Setter for latitude
|
LatLong |
setLatitude(java.lang.Float value,
com.linkedin.data.template.SetMode mode)
Setter for latitude
|
LatLong |
setLongitude(float value)
Setter for longitude
|
LatLong |
setLongitude(java.lang.Float value)
Setter for longitude
|
LatLong |
setLongitude(java.lang.Float value,
com.linkedin.data.template.SetMode mode)
Setter for longitude
|
public static LatLong.Fields fields()
public boolean hasLatitude()
LatLong.Fields.latitude()public void removeLatitude()
LatLong.Fields.latitude()public java.lang.Float getLatitude(com.linkedin.data.template.GetMode mode)
LatLong.Fields.latitude()@Nullable public java.lang.Float getLatitude()
LatLong.Fields.latitude()public LatLong setLatitude(java.lang.Float value, com.linkedin.data.template.SetMode mode)
LatLong.Fields.latitude()public LatLong setLatitude(@Nonnull java.lang.Float value)
value - Must not be null. For more control, use setters with mode instead.LatLong.Fields.latitude()public LatLong setLatitude(float value)
LatLong.Fields.latitude()public boolean hasLongitude()
LatLong.Fields.longitude()public void removeLongitude()
LatLong.Fields.longitude()public java.lang.Float getLongitude(com.linkedin.data.template.GetMode mode)
LatLong.Fields.longitude()@Nullable public java.lang.Float getLongitude()
LatLong.Fields.longitude()public LatLong setLongitude(java.lang.Float value, com.linkedin.data.template.SetMode mode)
LatLong.Fields.longitude()public LatLong setLongitude(@Nonnull java.lang.Float value)
value - Must not be null. For more control, use setters with mode instead.LatLong.Fields.longitude()public LatLong setLongitude(float value)
LatLong.Fields.longitude()public LatLong clone() throws java.lang.CloneNotSupportedException
clone in interface com.linkedin.data.template.DataTemplate<com.linkedin.data.DataMap>clone in class com.linkedin.data.template.RecordTemplatejava.lang.CloneNotSupportedExceptionpublic LatLong copy() throws java.lang.CloneNotSupportedException
copy in interface com.linkedin.data.template.DataTemplate<com.linkedin.data.DataMap>copy in class com.linkedin.data.template.RecordTemplatejava.lang.CloneNotSupportedException