com.yandex.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-sdk-jdbc-uberjar Show documentation
Show all versions of ydb-sdk-jdbc-uberjar Show documentation
JDBC client implementation over Table client, single jar
package com.yandex.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;
}
}