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(com.spatial4j.core.context.SpatialContext spatialContext) |
com.spatial4j.core.shape.Rectangle |
getBoundingBox() |
com.spatial4j.core.shape.Shape |
getBuffered(double v,
com.spatial4j.core.context.SpatialContext spatialContext) |
com.spatial4j.core.shape.Point |
getCenter() |
com.spatial4j.core.context.SpatialContext |
getContext() |
NumberRangePrefixTree.UnitNRShape |
getMaxUnit() |
NumberRangePrefixTree.UnitNRShape |
getMinUnit() |
boolean |
hasArea() |
int |
hashCode() |
boolean |
isEmpty() |
com.spatial4j.core.shape.SpatialRelation |
relate(NumberRangePrefixTree.SpanUnitsNRShape ext) |
com.spatial4j.core.shape.SpatialRelation |
relate(com.spatial4j.core.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 com.spatial4j.core.context.SpatialContext getContext()
getContext in interface com.spatial4j.core.shape.Shapepublic NumberRangePrefixTree.UnitNRShape getMinUnit()
public NumberRangePrefixTree.UnitNRShape getMaxUnit()
public NumberRangePrefixTree.NRShape roundToLevel(int targetLevel)
NumberRangePrefixTree.NRShaperoundToLevel in interface NumberRangePrefixTree.NRShapepublic com.spatial4j.core.shape.SpatialRelation relate(com.spatial4j.core.shape.Shape shape)
relate in interface com.spatial4j.core.shape.Shapepublic com.spatial4j.core.shape.SpatialRelation relate(NumberRangePrefixTree.SpanUnitsNRShape ext)
public com.spatial4j.core.shape.Rectangle getBoundingBox()
getBoundingBox in interface com.spatial4j.core.shape.Shapepublic boolean hasArea()
hasArea in interface com.spatial4j.core.shape.Shapepublic double getArea(com.spatial4j.core.context.SpatialContext spatialContext)
getArea in interface com.spatial4j.core.shape.Shapepublic com.spatial4j.core.shape.Point getCenter()
getCenter in interface com.spatial4j.core.shape.Shapepublic com.spatial4j.core.shape.Shape getBuffered(double v,
com.spatial4j.core.context.SpatialContext spatialContext)
getBuffered in interface com.spatial4j.core.shape.Shapepublic boolean isEmpty()
isEmpty in interface com.spatial4j.core.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-2016 Apache Software Foundation. All Rights Reserved.