tech.ydb.jdbc.settings.ParsedProperty Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ydb-jdbc-driver Show documentation
Show all versions of ydb-jdbc-driver Show documentation
JDBC Driver over YDB Java SDK
package tech.ydb.jdbc.settings;
import java.util.Objects;
public class ParsedProperty {
private final String rawValue;
private final Object parsedValue;
public ParsedProperty(String rawValue, Object parsedValue) {
this.rawValue = Objects.requireNonNull(rawValue);
this.parsedValue = Objects.requireNonNull(parsedValue);
}
public String getRawValue() {
return rawValue;
}
@SuppressWarnings("unchecked")
public T getParsedValue() {
return (T) parsedValue;
}
}