Package com.biglybt.core.util
Class HashWrapper
java.lang.Object
com.biglybt.core.util.HashWrapper
- All Implemented Interfaces:
ByteArrayWrapper
- Direct Known Subclasses:
PEPeerControlImpl.PeerResolvedCacheKey
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
hash
private final byte[] hash -
hash_code
private int hash_code
-
-
Constructor Details
-
HashWrapper
public HashWrapper(byte[] _hash) -
HashWrapper
public HashWrapper(byte[] _hash, int offset, int length)
-
-
Method Details
-
equals
-
getHash
public byte[] getHash() -
getBytes
public byte[] getBytes()- Specified by:
getBytes
in interfaceByteArrayWrapper
-
hashCode
public int hashCode() -
toBase32String
- Specified by:
toBase32String
in interfaceByteArrayWrapper
-