org.gudy.azureus2.core3.util
Class HashWrapper2

java.lang.Object
  extended by org.gudy.azureus2.core3.util.HashWrapper2

public class HashWrapper2
extends Object

This class DOES NOT COPY THE UNDERLYING BYTES AND ONLY SUPPORTS Short.MAX_VALUE bytes

Author:
Azureus

Constructor Summary
HashWrapper2(byte[] hash)
           
HashWrapper2(byte[] _hash, int _offset, int _length)
           
 
Method Summary
 boolean equals(Object o)
           
 byte[] getBytes()
           
 short getLength()
           
 short getOffset()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HashWrapper2

public HashWrapper2(byte[] hash)

HashWrapper2

public HashWrapper2(byte[] _hash,
                    int _offset,
                    int _length)
Method Detail

getBytes

public byte[] getBytes()

getOffset

public short getOffset()

getLength

public short getLength()

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object