> +      }
> +
> +      public String getRemoteBlobName() {
> +         return remoteBlobName;
> +      }
> +
> +      public File getLocalFile() {
> +         return localFile;
> +      }
> +
> +      public String getETag() {
> +         return eTag;
> +      }
> +
> +      public boolean isUploaded() {
> +         return eTag != null;

Sorry...my comment probably wasn't clear. Since it's immutable, how about:
```
...
// all immutable now! ;-)
private final String eTag;
private final boolean uploaded;

protected BlobDetail(String remoteBlobName, File localFile) {
   this(remoteBlobName, localFile, null);
}

protected BlobDetail(String remoteBlobName, File localFile, @Nullable String 
eTag) {
   this.remoteBlobName = remoteBlobName;
   this.localFile = localFile;
   this.eTag = eTag;
   uploaded = (eTag != null);
}
...
public boolean isUploaded() {
   return uploaded;
}
...
```
? Or without the additional `uploaded` field, if you prefer - the usual time 
vs. space tradeoff, I guess ;-)

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-examples/pull/11/files#r5439079

Reply via email to