-
public final class ConfigSourceSupplier<ValueType extends Object> extends ConfigValueSupplier<ValueType>
Retrieve the given key from source as type, where type and ValueType must 'match'
-
-
Constructor Summary
Constructors Constructor Description ConfigSourceSupplier(String key, ConfigSource source, KType type, Deprecation deprecation)
-
Method Summary
Modifier and Type Method Description final <NewType extends Any> ConfigSourceSupplier<NewType>withRetrievedType(KType newType)Return a new ConfigSourceSupplier with the same key, source and deprecation but which retrieves as newType instead of type. ConfigValueSupplier<ValueType>withDeprecation(Deprecation deprecation)Apply a Deprecation to this ConfigValueSupplier. StringtoString()-
Methods inherited from class org.jitsi.metaconfig.supplier.ConfigSourceSupplier
get -
Methods inherited from class org.jitsi.metaconfig.supplier.ConfigValueSupplier
equals, hashCode -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ConfigSourceSupplier
ConfigSourceSupplier(String key, ConfigSource source, KType type, Deprecation deprecation)
-
-
Method Detail
-
withRetrievedType
final <NewType extends Any> ConfigSourceSupplier<NewType> withRetrievedType(KType newType)
Return a new ConfigSourceSupplier with the same key, source and deprecation but which retrieves as newType instead of type.
-
withDeprecation
ConfigValueSupplier<ValueType> withDeprecation(Deprecation deprecation)
Apply a Deprecation to this ConfigValueSupplier. Deprecation is only applied to types where it makes sense (those which retrieve a value from an 'external' location--right now only ConfigSourceSupplier), however, types which wrap an inner supplier must pass the deprecation 'down' so it can be applied correctly by any supplier which should observe it.
-
-
-
-