Interface NumberRangePrefixTree.NRShape
-
- All Superinterfaces:
Cloneable
,org.locationtech.spatial4j.shape.Shape
- All Known Subinterfaces:
NumberRangePrefixTree.UnitNRShape
- All Known Implementing Classes:
NumberRangePrefixTree.NRCell
,NumberRangePrefixTree.SpanUnitsNRShape
- Enclosing class:
- NumberRangePrefixTree
public static interface NumberRangePrefixTree.NRShape extends org.locationtech.spatial4j.shape.Shape, Cloneable
Base interface forShape
s this prefix tree supports. It extendsShape
(Spatial4j) for compatibility with the spatial API even though it doesn't intermix with conventional 2D shapes.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NumberRangePrefixTree.NRShape
roundToLevel(int targetLevel)
Returns this shape rounded to the target level.String
toString()
The result should be parseable byNumberRangePrefixTree.parseShape(String)
.
-
-
-
Method Detail
-
toString
String toString()
The result should be parseable byNumberRangePrefixTree.parseShape(String)
.
-
roundToLevel
NumberRangePrefixTree.NRShape roundToLevel(int targetLevel)
Returns this shape rounded to the target level. If we are already more course than the level then the shape is simply returned. The result may refer to internal state of the argument so you may want to clone it.
-
-