public class NumberRangePrefixTree.SpanUnitsNRShape extends Object implements NumberRangePrefixTree.NRShape
NumberRangePrefixTree.UnitNRShape.
Spatially speaking, it's analogous to a Rectangle but 1D. It might have been named with Range in the name but it
may be confusing since even the NumberRangePrefixTree.UnitNRShape
is in some sense a range.| Modifier and Type | Method and Description |
|---|---|
NumberRangePrefixTree.SpanUnitsNRShape |
clone()
A deep clone.
|
boolean |
equals(Object o) |
double |
getArea(org.locationtech.spatial4j.context.SpatialContext spatialContext) |
org.locationtech.spatial4j.shape.Rectangle |
getBoundingBox() |
org.locationtech.spatial4j.shape.Shape |
getBuffered(double v,
org.locationtech.spatial4j.context.SpatialContext spatialContext) |
org.locationtech.spatial4j.shape.Point |
getCenter() |
org.locationtech.spatial4j.context.SpatialContext |
getContext() |
NumberRangePrefixTree.UnitNRShape |
getMaxUnit() |
NumberRangePrefixTree.UnitNRShape |
getMinUnit() |
boolean |
hasArea() |
int |
hashCode() |
boolean |
isEmpty() |
org.locationtech.spatial4j.shape.SpatialRelation |
relate(NumberRangePrefixTree.SpanUnitsNRShape ext) |
org.locationtech.spatial4j.shape.SpatialRelation |
relate(org.locationtech.spatial4j.shape.Shape shape) |
NumberRangePrefixTree.NRShape |
roundToLevel(int targetLevel)
Returns this shape rounded to the target level.
|
String |
toString()
The result should be parseable by
NumberRangePrefixTree.parseShape(String). |
public org.locationtech.spatial4j.context.SpatialContext getContext()
getContext in interface org.locationtech.spatial4j.shape.Shapepublic NumberRangePrefixTree.UnitNRShape getMinUnit()
public NumberRangePrefixTree.UnitNRShape getMaxUnit()
public NumberRangePrefixTree.NRShape roundToLevel(int targetLevel)
NumberRangePrefixTree.NRShaperoundToLevel in interface NumberRangePrefixTree.NRShapepublic org.locationtech.spatial4j.shape.SpatialRelation relate(org.locationtech.spatial4j.shape.Shape shape)
relate in interface org.locationtech.spatial4j.shape.Shapepublic org.locationtech.spatial4j.shape.SpatialRelation relate(NumberRangePrefixTree.SpanUnitsNRShape ext)
public org.locationtech.spatial4j.shape.Rectangle getBoundingBox()
getBoundingBox in interface org.locationtech.spatial4j.shape.Shapepublic boolean hasArea()
hasArea in interface org.locationtech.spatial4j.shape.Shapepublic double getArea(org.locationtech.spatial4j.context.SpatialContext spatialContext)
getArea in interface org.locationtech.spatial4j.shape.Shapepublic org.locationtech.spatial4j.shape.Point getCenter()
getCenter in interface org.locationtech.spatial4j.shape.Shapepublic org.locationtech.spatial4j.shape.Shape getBuffered(double v,
org.locationtech.spatial4j.context.SpatialContext spatialContext)
getBuffered in interface org.locationtech.spatial4j.shape.Shapepublic boolean isEmpty()
isEmpty in interface org.locationtech.spatial4j.shape.Shapepublic NumberRangePrefixTree.SpanUnitsNRShape clone()
public String toString()
NumberRangePrefixTree.NRShapeNumberRangePrefixTree.parseShape(String).toString in interface NumberRangePrefixTree.NRShapetoString in class Objectpublic boolean equals(Object o)
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.