Package me.datafox.dfxengine.text.api
Interface ConfigurationValue<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A value used by
TextFactory for configuration. get(TextFactory, TextConfiguration) will be called
every time the configuration value is requested. Implementations should be careful when using the provided
TextConfiguration to avoid cyclic method calls.-
Method Summary
Modifier and TypeMethodDescriptionget(TextFactory factory, TextConfiguration configuration) When writing implementations, the developer should be careful when using the providedTextConfigurationto avoid cyclic method calls
-
Method Details
-
get
When writing implementations, the developer should be careful when using the providedTextConfigurationto avoid cyclic method calls- Parameters:
factory-TextFactoryfor generating the configuration valueconfiguration-TextConfigurationfor generating the configuration value- Returns:
- configured value, or
nullif the value cannot be generated
-