-
- All Implemented Interfaces:
public final class ValueTransformingSupplier<ValueType extends Object> extends ConfigValueSupplier<ValueType>
Transforms the value of the result of originalSupplier into some new value.
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 ValueTransformingSupplier(ConfigValueSupplier<ValueType> originalSupplier, Function1<ValueType, ValueType> transformer)
-
Method Summary
Modifier and Type Method Description ValueTransformingSupplier<ValueType>withDeprecation(Deprecation deprecation)Apply a Deprecation to this ConfigValueSupplier. StringtoString()-
-
Constructor Detail
-
ValueTransformingSupplier
ValueTransformingSupplier(ConfigValueSupplier<ValueType> originalSupplier, Function1<ValueType, ValueType> transformer)
-
-
Method Detail
-
withDeprecation
ValueTransformingSupplier<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.
-
-
-
-