public final class ChecksumType extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static ChecksumType |
DEFAULT_TYPE
Default type md5
|
protected String |
type
The type name
|
| Modifier | Constructor and Description |
|---|---|
|
ChecksumType()
Needed by JAXB
|
protected |
ChecksumType(String type)
Creates a new checksum type with the given type name.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static ChecksumType |
fromString(String type)
Returns a checksum type for the given string.
|
static ChecksumType |
fromValue(String value)
Returns the type of the checksum gathered from the provided value.
|
String |
getName()
Returns the checksum value.
|
int |
hashCode() |
String |
toString() |
public static final ChecksumType DEFAULT_TYPE
protected String type
public ChecksumType()
protected ChecksumType(String type)
type - the type namepublic String getName()
public static ChecksumType fromString(String type) throws NoSuchAlgorithmException
Type is considered to be the name of a checksum type.type - the type nameNoSuchAlgorithmException - if the digest is not supported by the java environmentpublic static ChecksumType fromValue(String value)
value - the checksum valuepublic boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class ObjectObject.hashCode()Copyright © 2009–2021 Opencast Project. All rights reserved.