public class SpatialPartition
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
SpatialPartition()
Creates a new instance
|
SpatialPartition(int index, double[] mbr)
Creates a new instance with the given data
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
double[] |
getMbr()
Gets the partition's minimum bounding rectangle
|
int |
hashCode() |
int |
index() |
boolean |
interacts(JGeometry geom)
Returns true if the partition interacts the given geometry
|
void |
readFields(java.io.DataInput in) |
void |
setIndex(int index)
Sets the partition index
|
java.lang.String |
toString() |
void |
write(java.io.DataOutput out) |
public SpatialPartition()
public SpatialPartition(int index, double[] mbr)
index
- the partition indexmbr
- a minimum bounding rectanglepublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public double[] getMbr()
public int hashCode()
hashCode
in class java.lang.Object
public int index()
public boolean interacts(JGeometry geom)
geom
-public void readFields(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public void setIndex(int index)
index
-public java.lang.String toString()
toString
in class java.lang.Object
public void write(java.io.DataOutput out) throws java.io.IOException
java.io.IOException
Copyright © 2017 Oracle and/or its affiliates. All Rights Reserved.