Class BoundingRadius
- java.lang.Object
-
- com.ibm.fhir.search.location.bounding.Bounding
-
- com.ibm.fhir.search.location.bounding.BoundingRadius
-
public class BoundingRadius extends Bounding
Bounding Radius takes a point as defined in radians. Latitude and Longtitude and the radius on the arc. The radius on the arc must be in meters.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BoundingRadius.Builder
Builds the Bounding Radius.
-
Constructor Summary
Constructors Constructor Description BoundingRadius()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BoundingRadius.Builder
builder()
List<Double>
getDataPoints()
gets the coordinates in an ordered listDouble
getLatitude()
Double
getLongitude()
Double
getRadius()
BoundingType
getType()
returns the bounding type - radius or box.protected void
setLatitude(Double latitude)
protected void
setLongitude(Double longitude)
protected void
setRadius(Double radius)
String
toString()
void
validate()
validates the Longitude and Latitude is valid for the Bounding area.-
Methods inherited from class com.ibm.fhir.search.location.bounding.Bounding
instance, setInstance
-
-
-
-
Method Detail
-
getLatitude
public Double getLatitude()
-
setLatitude
protected void setLatitude(Double latitude)
-
getLongitude
public Double getLongitude()
-
setLongitude
protected void setLongitude(Double longitude)
-
getRadius
public Double getRadius()
-
setRadius
protected void setRadius(Double radius)
-
validate
public void validate()
Description copied from class:Bounding
validates the Longitude and Latitude is valid for the Bounding area.
-
getDataPoints
public List<Double> getDataPoints()
Description copied from class:Bounding
gets the coordinates in an ordered list- Specified by:
getDataPoints
in classBounding
- Returns:
-
getType
public BoundingType getType()
Description copied from class:Bounding
returns the bounding type - radius or box.
-
builder
public static BoundingRadius.Builder builder()
-
-