1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
package org.phash;
import java.math.BigInteger;
/**
*
* @author Christoph Zauner
*/
public class BMBImageHash extends ImageHash {
private byte[] hash;
@Override
public String toString() {
BigInteger bigInteger = new BigInteger(hash);
return bigInteger.toString(2);
}
/**
* @return the hash
*/
public byte[] getHash() {
return hash;
}
/**
* @param hash the hash to set
*/
public void setHash(byte[] hash) {
this.hash = hash;
}
} // end of class
|