Xindice API
version 1.1

org.apache.xindice.core.data
Class Key

java.lang.Object
  |
  +--org.apache.xindice.core.data.Value
        |
        +--org.apache.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.

Version:
$Revision: 526062 $, $Date: 2007-04-06 01:33:50 -0400 (Fri, 06 Apr 2007) $

Fields inherited from class org.apache.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 org.apache.xindice.core.data.Value
byteAt, compareTo, compareTo, copyTo, copyTo, getData, getInputStream, getLength, getSubvalue, 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

Xindice API
version 1.1

Copyright (c) 1999-2007 The Apache Software Foundation. All Rights Reserved.