public class BlobDescriptor
extends java.lang.Object
Constructor and Description |
---|
BlobDescriptor(DescriptorDigest digest)
Initialize with just digest.
|
BlobDescriptor(long size,
DescriptorDigest digest) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Two
BlobDescriptor objects are equal if their
digest s are not null and equal, and
size s are non-negative and equal
|
DescriptorDigest |
getDigest() |
long |
getSize() |
int |
hashCode() |
boolean |
hasSize() |
java.lang.String |
toString() |
public BlobDescriptor(long size, DescriptorDigest digest)
public BlobDescriptor(DescriptorDigest digest)
digest
- the digest to initialize the BlobDescriptor
frompublic boolean hasSize()
public DescriptorDigest getDigest()
public long getSize()
public boolean equals(java.lang.Object obj)
BlobDescriptor
objects are equal if their
digest
s are not null and equal, and
size
s are non-negative and equal
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object