org.apache.hadoop.hdfs.util
Class ByteArray

java.lang.Object
  extended by org.apache.hadoop.hdfs.util.ByteArray

@InterfaceAudience.Private
public class ByteArray
extends Object

Wrapper for byte[] to use byte[] as key in HashMap


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

Constructor Detail

ByteArray

public ByteArray(byte[] bytes)
Method Detail

getBytes

public byte[] getBytes()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


Copyright © 2009 The Apache Software Foundation