liquibase.license.LicenseInstallResult Maven / Gradle / Ivy
package liquibase.license;
import java.util.ArrayList;
import java.util.List;
/**
* encapsulates overall install result and any messages.
*/
public class LicenseInstallResult {
public int code;
public List messages;
public LicenseInstallResult(int code) {
this.code = code;
this.messages = new ArrayList<>();
}
public LicenseInstallResult(int code, String message) {
this.code = code;
this.messages = new ArrayList<>();
messages.add(message);
}
public LicenseInstallResult(int code, List results) {
this.code = code;
this.messages = new ArrayList<>();
messages.addAll(results);
}
public void add(LicenseInstallResult result) {
if (result.code != 0) {
this.code = result.code;
}
this.messages.addAll(result.messages);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy