org.gudy.azureus2.core3.util
Class HashWrapper

java.lang.Object
  extended by org.gudy.azureus2.core3.util.HashWrapper
All Implemented Interfaces:
ByteArrayWrapper

public class HashWrapper
extends Object
implements ByteArrayWrapper

Author:
Olivier

Constructor Summary
HashWrapper(byte[] _hash)
           
HashWrapper(byte[] _hash, int offset, int length)
           
 
Method Summary
 boolean equals(Object o)
           
 byte[] getBytes()
           
 byte[] getHash()
           
 int hashCode()
           
 String toBase32String()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HashWrapper

public HashWrapper(byte[] _hash)

HashWrapper

public HashWrapper(byte[] _hash,
                   int offset,
                   int length)
Method Detail

equals

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

getHash

public byte[] getHash()

getBytes

public byte[] getBytes()
Specified by:
getBytes in interface ByteArrayWrapper

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toBase32String

public String toBase32String()
Specified by:
toBase32String in interface ByteArrayWrapper