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 classBoundingRadius.BuilderBuilds 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.Builderbuilder()List<Double>getDataPoints()gets the coordinates in an ordered listDoublegetLatitude()DoublegetLongitude()DoublegetRadius()BoundingTypegetType()returns the bounding type - radius or box.protected voidsetLatitude(Double latitude)protected voidsetLongitude(Double longitude)protected voidsetRadius(Double radius)StringtoString()voidvalidate()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:Boundingvalidates the Longitude and Latitude is valid for the Bounding area.
-
getDataPoints
public List<Double> getDataPoints()
Description copied from class:Boundinggets the coordinates in an ordered list- Specified by:
getDataPointsin classBounding- Returns:
-
getType
public BoundingType getType()
Description copied from class:Boundingreturns the bounding type - radius or box.
-
builder
public static BoundingRadius.Builder builder()
-
-