org.apache.hadoop.hbase.util
Class HashedBytes
java.lang.Object
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.
HashedBytes
public HashedBytes(byte[] bytes)
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.