-
- All Implemented Interfaces:
public final class LambdaSupplier<ValueType extends Object> extends ConfigValueSupplier<ValueType>
-
-
Constructor Summary
Constructors Constructor Description LambdaSupplier(Function0<ValueType> supplier)LambdaSupplier(String context, Function0<ValueType> supplier)
-
Method Summary
Modifier and Type Method Description LambdaSupplier<ValueType>withDeprecation(Deprecation deprecation)Apply a Deprecation to this ConfigValueSupplier. StringtoString()-
-
Method Detail
-
withDeprecation
LambdaSupplier<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.
-
-
-
-