Package org.tmatesoft.svn.core.wc2
Class SvnChecksum
java.lang.Object
org.tmatesoft.svn.core.wc2.SvnChecksum
Represents a checksum for SVN files.
- Version:
- 1.7
- Author:
- TMate Software Ltd.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDescribes the kind of used hash algorithm for computing the checksum. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSvnChecksum(SvnChecksum.Kind kind, String digest) Constructs an SvnChecksum object with the specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic SvnChecksumfromString(String checksum) Creates checksum object fromString.Gets computed checksum value.getKind()Gets king of checksum.inthashCode()static booleanmatch(SvnChecksum checksum1, SvnChecksum checksum2) voidSets computed checksum value.voidsetKind(SvnChecksum.Kind kind) Sets kind of checksum.toString()ReturnsStringrepresentation of checksum.
-
Field Details
-
SHA1_EMPTY
- See Also:
-
-
Constructor Details
-
SvnChecksum
Constructs an SvnChecksum object with the specified parameters.- Parameters:
kind- kind of checksumdigest- computed checksum value
-
-
Method Details
-
getKind
Gets king of checksum.- Returns:
- checksum kind
-
getDigest
Gets computed checksum value.- Returns:
- computed checksum value
-
setKind
Sets kind of checksum.- Parameters:
kind- checksum kind
-
setDigest
Sets computed checksum value.- Parameters:
digest- computed checksum value
-
toString
ReturnsStringrepresentation of checksum. -
hashCode
public int hashCode() -
equals
-
fromString
Creates checksum object fromString.- Parameters:
checksum- checksum represented inString- Throws:
SVNException
-
match
-