T
- public static interface Checksummer.Helper<T>
Objects that are to be hashed must be converted into InputStream
Modifier and Type | Method and Description |
---|---|
T |
asObject(String string)
The passed String back into T.
|
InputStream |
asStream(T object)
Convert T into a stream of raw bytes so that it can be hashed.
|
String |
asString(T object)
Covert T into a unique string representation.
|
InputStream asStream(T object)
object
- the object to convert.String asString(T object)
Checksummer.write(org.dom4j.Element)
. It should provide
enough information to be able to restore T later in the asObject(String)
method.object
- the object to convert.T asObject(String string)
asString(Object)
}.string
- the string to convert.Copyright © 2002-2023 Atlassian. All Rights Reserved.