Interface DeletableConfig<K>
- Type Parameters:
K- the type of data keys used in the configuration file.
- All Known Subinterfaces:
CRUDOperations<K>
- All Known Implementing Classes:
AutoReadBukkitConfig,AutoReadYamlSource,BaseConfig,BasicBukkitConfig,BasicVelocityConfig,BukkitConfig,YamlSource
public interface DeletableConfig<K>
Defines the capability for a configuration to be deleted.
Implementations of this interface provide a specific
ConfigOperation
designed to safely remove the configuration file from disk and clear associated memory.- Since:
- 0.1
- Author:
- a8kj7sea
-
Method Summary
Modifier and TypeMethodDescriptiondelete()Provides the operation logic for deleting the configuration.
-
Method Details
-
delete
ConfigOperation<K> delete()Provides the operation logic for deleting the configuration. This typically handles the physical deletion of the file and wiping any in-memory data structures.- Returns:
- a
ConfigOperationrepresenting the deletion process. - Since:
- 0.1
-