org.apache.hadoop.hbase.util
Class HashedBytes

java.lang.Object
  extended by org.apache.hadoop.hbase.util.HashedBytes

public class HashedBytes
extends Object

This class encapsulates a byte array and overrides hashCode and equals so that it's identity is based on the data rather than the array instance.


Constructor Summary
HashedBytes(byte[] bytes)
           
 
Method Summary
 boolean equals(Object obj)
           
 byte[] getBytes()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HashedBytes

public HashedBytes(byte[] bytes)
Method Detail

getBytes

public byte[] getBytes()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.