org.geotools.caching.grid.spatialindex
Class GridData

java.lang.Object
  extended by org.geotools.caching.grid.spatialindex.GridData
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, Data<java.lang.Object>, Entry

public class GridData
extends java.lang.Object
implements Data<java.lang.Object>, java.io.Externalizable

Associates data with its shape to be stored in the index.

Author:
Christophe Rousson, SoC 2007, CRG-ULAVAL
See Also:
Serialized Form

Constructor Summary
GridData()
           
GridData(Shape shape, java.lang.Object data)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.Object getData()
           
static SimpleFeatureMarshaller getFeatureMarshaller()
           
 Shape getShape()
           
 int hashCode()
           
 void readExternal(java.io.ObjectInput in)
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridData

public GridData()

GridData

public GridData(Shape shape,
                java.lang.Object data)
Method Detail

getData

public java.lang.Object getData()
Specified by:
getData in interface Data<java.lang.Object>

getShape

public Shape getShape()
Specified by:
getShape in interface Entry

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

getFeatureMarshaller

public static SimpleFeatureMarshaller getFeatureMarshaller()


Copyright © 1996-2010 Geotools. All Rights Reserved.