Class InterfaceDefaultOptions
java.lang.Object
org.spongepowered.configurate.interfaces.InterfaceDefaultOptions
This class has the default
ConfigurationOptions
with InterfaceTypeSerializer added to the serializers.- Since:
- 4.3.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigurationOptionsaddTo(ConfigurationOptions options) Sets the default configuration options to be used by the resultant loader by providing a function which takes interface's default serializer collection and applies any desired changes.static ConfigurationOptionsaddTo(ConfigurationOptions options, Consumer<ObjectMapper.Factory.Builder> objectMapperConsumer) addTo(ConfigurationOptions)with an option to customize theObjectMapper.Factory.static ConfigurationOptionsdefaults()The default ConfigurationOptions withInterfaceTypeSerializeradded to the serializers.
-
Method Details
-
defaults
The default ConfigurationOptions withInterfaceTypeSerializeradded to the serializers.- Returns:
- the default ConfigurationOptions with
InterfaceTypeSerializeradded to the serializers. - Since:
- 4.3.0
-
addTo
Sets the default configuration options to be used by the resultant loader by providing a function which takes interface's default serializer collection and applies any desired changes.- Parameters:
options- to transform the existing default options- Returns:
- the default options with the applied changes
- Since:
- 4.3.0
-
addTo
public static ConfigurationOptions addTo(ConfigurationOptions options, Consumer<ObjectMapper.Factory.Builder> objectMapperConsumer) addTo(ConfigurationOptions)with an option to customize theObjectMapper.Factory.- Parameters:
options- to transform the existing default optionsobjectMapperConsumer- to transform the ObjectMapper factory- Returns:
- the default options with the applied changes
- Since:
- 4.3.0
-