com.exasol.bucketfs.UploadResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bucketfs-java Show documentation
Show all versions of bucketfs-java Show documentation
Java library for automating tasks on Exasol's BucketFS.
The newest version!
package com.exasol.bucketfs;
/**
* This class contains the result of an upload operation.
*/
public class UploadResult {
private final boolean wasUploadNecessary;
/**
* Create a new instance of {@link UploadResult}.
*
* @param wasUploadNecessary if the upload was necessary
*/
UploadResult(final boolean wasUploadNecessary) {
this.wasUploadNecessary = wasUploadNecessary;
}
/**
* Get if the file was uploaded or skipped.
*
* @return {@code true} if the file was uploaded. {@code false} if an upload was not necessary
*/
public boolean wasUploadNecessary() {
return this.wasUploadNecessary;
}
}