All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tech.ydb.jdbc.settings.ParsedProperty Maven / Gradle / Ivy

There is a newer version: 2.3.5
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy