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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Describes 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 TypeMethodDescriptionboolean
static SvnChecksum
fromString
(String checksum) Creates checksum object fromString
.Gets computed checksum value.getKind()
Gets king of checksum.int
hashCode()
static boolean
match
(SvnChecksum checksum1, SvnChecksum checksum2) void
Sets computed checksum value.void
setKind
(SvnChecksum.Kind kind) Sets kind of checksum.toString()
ReturnsString
representation of checksum.
-
Field Details
-
kind
-
digest
-
-
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
ReturnsString
representation of checksum. -
hashCode
public int hashCode() -
equals
-
fromString
Creates checksum object fromString
.- Parameters:
checksum
- checksum represented inString
- Throws:
SVNException
-
match
-