public class ConfiguredValue<DataType> extends Object
ProvidedValues to return the overall value returned from the collection of ConfigurationValueProviders.
Returned by LiquibaseConfiguration.getCurrentConfiguredValue(ConfigurationValueConverter, ConfigurationValueObfuscator, String...)| Modifier | Constructor and Description |
|---|---|
protected |
ConfiguredValue(String key,
ConfigurationValueConverter<DataType> converter,
ConfigurationValueObfuscator<DataType> obfuscator) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
found() |
ProvidedValue |
getProvidedValue()
Returns the "winning" value across all the possible
ConfigurationValueProvider. |
List<ProvidedValue> |
getProvidedValues() |
DataType |
getValue() |
DataType |
getValueObfuscated() |
void |
override(ProvidedValue details)
Replaces the current configured value with a higher-precedence one.
|
boolean |
wasDefaultValueUsed()
Return true if a default value was the "winning" value
|
protected ConfiguredValue(String key, ConfigurationValueConverter<DataType> converter, ConfigurationValueObfuscator<DataType> obfuscator)
public DataType getValue()
public DataType getValueObfuscated()
public ProvidedValue getProvidedValue()
ConfigurationValueProvider.
A ProvidedValue is always returned, even if the value was not configured.found()public boolean wasDefaultValueUsed()
public void override(ProvidedValue details)
public List<ProvidedValue> getProvidedValues()
public boolean found()
Copyright © 2022 Liquibase.org. All rights reserved.