public interface EditableConfigurationArray extends ConfigurationArray
Modifier and Type | Interface and Description |
---|---|
static class |
EditableConfigurationArray.Modification |
static interface |
EditableConfigurationArray.ModificationListener |
static class |
EditableConfigurationArray.ModificationType |
Modifier and Type | Method and Description |
---|---|
default void |
add(java.lang.Object value)
Adds an object to the end of the array.
|
void |
addBoolean(boolean value)
Adds a boolean to the end of the array.
|
void |
addConfiguration(Configuration value)
Adds a Configuration to the end of the array.
|
void |
addInner(ConfigurationArray value)
Adds a ConfigurationArray to the end of the array.
|
void |
addModificationListener(EditableConfigurationArray.ModificationListener listener)
Adds a new modification listener to this configuration array.
|
void |
addNumber(java.lang.Number value)
Adds a number to the end of the array.
|
void |
addString(java.lang.String value)
Adds a String to the end of the array.
|
void |
remove(int i)
Removes the value at the given index.
|
void |
removeModificationListener(EditableConfigurationArray.ModificationListener listener)
Removes a modification listener from this configuration array.
|
void |
set(int i,
java.lang.Object value)
Sets the value at the given index to the new value.
|
get, getBoolean, getConfiguration, getInner, getNumber, getRawData, getRawDataOfType, getString, hasBoolean, hasConfiguration, hasInner, hasNumber, hasString, iterator, size, tryGetBoolean, tryGetConfiguration, tryGetInner, tryGetNumber, tryGetString
void addNumber(java.lang.Number value)
value
- The value to add.void addBoolean(boolean value)
value
- The value to add.void addString(java.lang.String value)
value
- The value to add.void addInner(ConfigurationArray value)
value
- The value to add.void addConfiguration(Configuration value)
value
- The value to add.default void add(java.lang.Object value)
value
- The value to add.void set(int i, java.lang.Object value)
i
- The index to be replaced.value
- The new value.void remove(int i)
i
- The index to remove.void addModificationListener(EditableConfigurationArray.ModificationListener listener)
listener
- The listener to be notified when the configuration array is modified.void removeModificationListener(EditableConfigurationArray.ModificationListener listener)
listener
- The listener to not be notified when the configuration array is modified anymore.