
com.configcat.Result Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of configcat-java-client Show documentation
Show all versions of configcat-java-client Show documentation
Java SDK for ConfigCat, a feature flag, feature toggle, and configuration management service. That lets you launch new features and change your software configuration remotely without actually (re)deploying code. ConfigCat even helps you do controlled roll-outs like canary releases and blue-green deployments.
The newest version!
package com.configcat;
final class Result {
private final T value;
private final Object error;
private Result(T value, Object error) {
this.value = value;
this.error = error;
}
T value() {
return this.value;
}
Object error() {
return this.error;
}
static Result error(Object error, T value) {
return new Result<>(value, error);
}
static Result success(T value) {
return new Result<>(value, null);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy