public class HashId extends Object implements Serializable, Comparable<HashId>
Constructor and Description |
---|
HashId(HashAlgorithm algorithm,
String hash)
This is the initial value constructor for this hash id.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(HashId other) |
boolean |
equals(Object obj) |
HashAlgorithm |
getAlgorithm() |
String |
getHash() |
int |
hashCode() |
String |
toString() |
static HashId |
valueOf(String hashIdString) |
public HashId(HashAlgorithm algorithm, String hash)
algorithm
- is the identifier of the algorithm used.hash
- is the hash.public static final HashId valueOf(String hashIdString) throws IllegalFormatException
IllegalFormatException
public HashAlgorithm getAlgorithm()
public String getHash()
public int compareTo(HashId other)
compareTo
in interface Comparable<HashId>
Copyright © 2014-2015 PureSol Technologies. All Rights Reserved.