Renamed ConfigBuilder to BuildableConfig
This commit is contained in:
@@ -6,11 +6,11 @@ import org.jetbrains.annotations.Nullable;
|
||||
/**
|
||||
* Builder for configs to create them programmatically.
|
||||
*/
|
||||
public class ConfigBuilder extends TransientConfig {
|
||||
public class BuildableConfig extends TransientConfig {
|
||||
/**
|
||||
* Create a new empty config builder.
|
||||
*/
|
||||
public ConfigBuilder() {
|
||||
public BuildableConfig() {
|
||||
super();
|
||||
}
|
||||
|
||||
@@ -21,8 +21,8 @@ public class ConfigBuilder extends TransientConfig {
|
||||
* @param object The object.
|
||||
* @return The builder.
|
||||
*/
|
||||
public ConfigBuilder add(@NotNull final String path,
|
||||
@Nullable final Object object) {
|
||||
public BuildableConfig add(@NotNull final String path,
|
||||
@Nullable final Object object) {
|
||||
set(path, object);
|
||||
return this;
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
package com.willfp.eco.core.config.interfaces;
|
||||
|
||||
import com.willfp.eco.core.config.ConfigBuilder;
|
||||
import com.willfp.eco.core.config.BuildableConfig;
|
||||
import com.willfp.eco.core.config.ConfigType;
|
||||
import com.willfp.eco.core.config.TransientConfig;
|
||||
import com.willfp.eco.core.placeholder.PlaceholderInjectable;
|
||||
@@ -560,7 +560,7 @@ public interface Config extends Cloneable, PlaceholderInjectable {
|
||||
*
|
||||
* @return The builder.
|
||||
*/
|
||||
static ConfigBuilder builder() {
|
||||
return new ConfigBuilder();
|
||||
static BuildableConfig builder() {
|
||||
return new BuildableConfig();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user