Package me.datafox.dfxengine.text.api
Interface TextConfiguration
- All Known Implementing Classes:
TextConfigurationImpl
public interface TextConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears all entries from this configuration.<T> voidclear(ConfigurationKey<T> key) copy()<T> Tget(ConfigurationKey<T> key) getAll()<T> voidset(ConfigurationKey<T> key, ConfigurationValue<T> value) <T> voidset(ConfigurationKey<T> key, T value) voidset(TextConfiguration configuration) Applies all entries of the provided configuration to this one, overwriting any existing entries if present.
-
Method Details
-
getFactory
TextFactory getFactory()- Returns:
TextFactoryassociated with this configuration
-
set
- Type Parameters:
T- type of the object returned by theConfigurationValue- Parameters:
key-ConfigurationKeyto be usedvalue-ConfigurationValueto be used
-
set
- Type Parameters:
T- type of the object- Parameters:
key-ConfigurationKeyto be usedvalue- object to be used
-
set
Applies all entries of the provided configuration to this one, overwriting any existing entries if present.- Parameters:
configuration-TextConfigurationto be applied
-
get
- Type Parameters:
T- type of the object- Parameters:
key-ConfigurationKeyto be used- Returns:
- object associated with the key, or the default value if none is present
-
getAll
Map<ConfigurationKey<?>,ConfigurationValue<?>> getAll()- Returns:
- Unmodifiable
Mapcontaining all entries of this configuration
-
clear
- Type Parameters:
T- type of the value- Parameters:
key-ConfigurationKeyassociated with the value to be cleared
-
clear
void clear()Clears all entries from this configuration. -
copy
TextConfiguration copy()- Returns:
- unique configuration instance containing all entries of this configuration
-