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 | 
contains(JGeometry geom)
Returns true if the partition contains the given geometry 
 | 
boolean | 
equals(java.lang.Object obj)  | 
double[] | 
getMbr()
Gets the partition's minimum bounding rectangle 
 | 
int | 
hashCode()  | 
int | 
index()  | 
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 contains(JGeometry geom)
geom -public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic double[] getMbr()
public int hashCode()
hashCode in class java.lang.Objectpublic int index()
public void readFields(java.io.DataInput in)
                throws java.io.IOException
java.io.IOExceptionpublic 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.IOExceptionCopyright © 2016 Oracle and/or its affiliates. All Rights Reserved.