org.geotools.caching.spatialindex
Class RegionNodeIdentifier

java.lang.Object
  extended by org.geotools.caching.spatialindex.NodeIdentifier
      extended by org.geotools.caching.spatialindex.RegionNodeIdentifier
All Implemented Interfaces:
java.io.Serializable

public final class RegionNodeIdentifier
extends NodeIdentifier

Identify nodes by the region they represent.

Author:
crousson
See Also:
Serialized Form

Constructor Summary
RegionNodeIdentifier(Node n)
          Identify a new node.
RegionNodeIdentifier(Region r)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 Shape getShape()
          Returns a copy of the nodes shape
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class org.geotools.caching.spatialindex.NodeIdentifier
getNode, isLocked, isValid, isWritable, readLock, readUnLock, setNode, setValid, writeLock, writeUnLock
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RegionNodeIdentifier

public RegionNodeIdentifier(Node n)
Identify a new node.

Parameters:
node -

RegionNodeIdentifier

public RegionNodeIdentifier(Region r)
Method Detail

getShape

public Shape getShape()
Returns a copy of the nodes shape

Specified by:
getShape in class NodeIdentifier

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 1996-2010 Geotools. All Rights Reserved.