-
public final class TypeConvertingSupplier<OriginalType extends Object, NewType extends Object> extends ConfigValueSupplier<NewType>
Converts the type of the result of originalSupplier from OriginalType to NewType using the given converter function.
Note that it makes no sense for this supplier to be deprecated as it doesn't actually retrieve a value itself, so we always pass noDeprecation.
-
-
Constructor Summary
Constructors Constructor Description TypeConvertingSupplier(ConfigValueSupplier<OriginalType> originalSupplier, Function1<OriginalType, NewType> converter)
-
Method Summary
Modifier and Type Method Description TypeConvertingSupplier<OriginalType, NewType>withDeprecation(Deprecation deprecation)Apply a Deprecation to this ConfigValueSupplier. StringtoString()-
Methods inherited from class org.jitsi.metaconfig.supplier.TypeConvertingSupplier
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
-
TypeConvertingSupplier
TypeConvertingSupplier(ConfigValueSupplier<OriginalType> originalSupplier, Function1<OriginalType, NewType> converter)
-
-
Method Detail
-
withDeprecation
TypeConvertingSupplier<OriginalType, NewType> 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.
-
-
-
-