JXTA

net.jxta.impl.xindice.core.data
Class Key

java.lang.Object
  extended by net.jxta.impl.xindice.core.data.Value
      extended by net.jxta.impl.xindice.core.data.Key
All Implemented Interfaces:
Comparable

public final class Key
extends Value

Key extends Value by providing a hash value for the Key.


Field Summary
 
Fields inherited from class net.jxta.impl.xindice.core.data.Value
data, len, pos
 
Constructor Summary
Key(byte[] data)
           
Key(byte[] data, int pos, int len)
           
Key(String data)
           
Key(Value value)
           
 
Method Summary
 boolean equals(Object obj)
           
 boolean equals(Value value)
           
 int getHash()
           
 int hashCode()
           
 
Methods inherited from class net.jxta.impl.xindice.core.data.Value
compareTo, compareTo, contains, copyTo, copyTo, endsWith, getData, getInputStream, getLength, startsWith, streamTo, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Key

public Key(Value value)

Key

public Key(byte[] data)

Key

public Key(byte[] data,
           int pos,
           int len)

Key

public Key(String data)
Method Detail

getHash

public int getHash()

equals

public boolean equals(Value value)
Overrides:
equals in class Value

hashCode

public int hashCode()
Overrides:
hashCode in class Value

equals

public boolean equals(Object obj)
Overrides:
equals in class Value

JXSE