public class FixityResultImpl extends java.lang.Object implements FixityResult
FixityResult.FixityState| Constructor and Description |
|---|
FixityResultImpl(CacheEntry entry,
long size,
java.net.URI checksum)
Prepare a fixity result with the expected size and checksum
|
FixityResultImpl(long size,
java.net.URI checksum)
Prepare a fixity result given the computed checksum and size
|
FixityResultImpl(java.lang.String storeIdentifier,
long size,
java.net.URI checksum) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.net.URI |
getComputedChecksum() |
long |
getComputedSize() |
java.util.Set<FixityResult.FixityState> |
getStatus(long size,
java.net.URI checksum) |
java.lang.String |
getStoreIdentifier()
Get the identifier for the entry's store
|
int |
hashCode() |
boolean |
matches(long size)
Check if the fixity result matches the given size
|
boolean |
matches(long size,
java.net.URI checksum)
Does the fixity entry match the given size and checksum?
|
boolean |
matches(java.net.URI checksum)
Check if the fixity result matches the given checksum URI
|
java.lang.String |
toString() |
public FixityResultImpl(long size,
java.net.URI checksum)
size - checksum - public FixityResultImpl(CacheEntry entry, long size, java.net.URI checksum) throws javax.jcr.RepositoryException
entry - size - checksum - javax.jcr.RepositoryExceptionpublic FixityResultImpl(java.lang.String storeIdentifier,
long size,
java.net.URI checksum)
storeIdentifier - size - checksum - public java.lang.String getStoreIdentifier()
getStoreIdentifier in interface FixityResultpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean matches(java.net.URI checksum)
matches in interface FixityResultchecksum - public boolean matches(long size)
matches in interface FixityResultsize - public boolean matches(long size,
java.net.URI checksum)
matches in interface FixityResultsize - bitstream size in byteschecksum - checksum URI in the form urn:DIGEST:RESULTpublic java.util.Set<FixityResult.FixityState> getStatus(long size, java.net.URI checksum)
getStatus in interface FixityResultpublic long getComputedSize()
getComputedSize in interface FixityResultpublic java.net.URI getComputedChecksum()
getComputedChecksum in interface FixityResultCopyright © 2013-2014 DuraSpace, Inc.. All Rights Reserved.