JCLOUDS-654: Add size to BlobMetadata constructor

Follow on to fae097e144.
This commit is contained in:
Andrew Gaul 2016-05-27 17:26:16 -07:00
parent 613290ea8d
commit 00a36c3e45
1 changed files with 10 additions and 2 deletions

View File

@ -43,13 +43,21 @@ public class BlobMetadataImpl extends StorageMetadataImpl implements BlobMetadat
public BlobMetadataImpl(String id, String name, @Nullable Location location, URI uri, String eTag,
@Nullable Date creationDate, @Nullable Date lastModified,
Map<String, String> userMetadata, @Nullable URI publicUri,
@Nullable String container, ContentMetadata contentMetadata) {
super(StorageType.BLOB, id, name, location, uri, eTag, creationDate, lastModified, userMetadata);
@Nullable String container, ContentMetadata contentMetadata, @Nullable Long size) {
super(StorageType.BLOB, id, name, location, uri, eTag, creationDate, lastModified, userMetadata, size);
this.publicUri = publicUri;
this.container = container;
this.contentMetadata = checkNotNull(contentMetadata, "contentMetadata");
}
@Deprecated
public BlobMetadataImpl(String id, String name, @Nullable Location location, URI uri, String eTag,
@Nullable Date creationDate, @Nullable Date lastModified,
Map<String, String> userMetadata, @Nullable URI publicUri,
@Nullable String container, ContentMetadata contentMetadata) {
this(id, name, location, uri, eTag, creationDate, lastModified, userMetadata, publicUri, container, contentMetadata, null);
}
/**
* {@inheritDoc}
*/