org.deegree.commons.index
Class QTree.Entry<ET>

java.lang.Object
  extended by org.deegree.commons.index.QTree.Entry<ET>
Type Parameters:
ET -
All Implemented Interfaces:
Serializable
Enclosing class:
QTree<T>

protected final class QTree.Entry<ET>
extends Object
implements Serializable

The Entry class wraps an object with its envelope

Version:
$Revision: 25249 $, $Date: 2010-07-09 16:33:21 +0200 (Fri, 09 Jul 2010) $
Author:
Rutger Bezema, last edited by: $Author: aschmitz $
See Also:
Serialized Form

Field Summary
 float[] entryEnv
          the envelope of the object
 ET entryValue
          the actual object
 
Method Summary
 boolean equals(Object other)
           
 int hashCode()
          Implementation as proposed by Joshua Block in Effective Java (Addison-Wesley 2001), which supplies an even distribution and is relatively fast.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

entryEnv

public final float[] entryEnv
the envelope of the object


entryValue

public final ET entryValue
the actual object

Method Detail

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Implementation as proposed by Joshua Block in Effective Java (Addison-Wesley 2001), which supplies an even distribution and is relatively fast. It is created from field f as follows:

Combining the hash code(s) computed above: result = 37 * result + code;

Overrides:
hashCode in class Object
Returns:
(int) ( result >>> 32 ) ^ (int) result;
See Also:
Object.hashCode()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.