| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
package org.locationtech.jts.index.intervalrtree; |
| 13 |
|
| 14 |
import org.locationtech.jts.index.ItemVisitor; |
| 15 |
|
| 16 |
public class IntervalRTreeLeafNode |
| 17 |
extends IntervalRTreeNode |
| 18 |
{ |
| 19 |
private Object item; |
| 20 |
|
| 21 |
public IntervalRTreeLeafNode(double min, double max, Object item) |
| 22 |
{ |
| 23 |
this.min = min; |
| 24 |
this.max = max; |
| 25 |
this.item = item; |
| 26 |
} |
| 27 |
|
| 28 |
public void query(double queryMin, double queryMax, ItemVisitor visitor) |
| 29 |
{ |
| 30 |
if (! intersects(queryMin, queryMax)) |
| 31 |
return; |
| 32 |
|
| 33 |
visitor.visitItem(item); |
| 34 |
} |
| 35 |
|
| 36 |
|
| 37 |
} |
| 38 |
|