public class DescriptorDigest extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
HASH_LENGTH |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Two digest objects are equal if their digest strings are equal.
|
static DescriptorDigest |
fromDigest(String digest)
Creates a new instance from a valid digest string.
|
static DescriptorDigest |
fromHash(String hash)
Creates a new instance from a valid hash string.
|
String |
getHash() |
int |
hashCode()
Pass-through hash code of the digest string.
|
String |
toString() |
public static final int HASH_LENGTH
public static DescriptorDigest fromHash(String hash) throws DigestException
hash - the hash to generate the DescriptorDigest fromDescriptorDigest created from the hashDigestException - if the hash is invalidpublic static DescriptorDigest fromDigest(String digest) throws DigestException
digest - the digest to generate the DescriptorDigest fromDescriptorDigest created from the digestDigestException - if the digest is invalidpublic String getHash()
public int hashCode()
Copyright © 2019. All rights reserved.