mirror of
https://github.com/CarmJos/EasyConfiguration.git
synced 2026-06-04 10:38:19 +08:00
docs: Add more javadocs
This commit is contained in:
+6
-1
@@ -9,7 +9,12 @@ import java.lang.annotation.Target;
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface InlineComments {
|
||||
|
||||
|
||||
/**
|
||||
* Multiple inline comments support.
|
||||
*
|
||||
* @return inline comment contents.
|
||||
* @see InlineComment
|
||||
*/
|
||||
InlineComment[] value();
|
||||
|
||||
}
|
||||
|
||||
+10
@@ -88,6 +88,16 @@ public class MemorySection implements ConfigureSection {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void remove(@NotNull String path) {
|
||||
MemorySection section = getSectionFor(path);
|
||||
if (section != this) {
|
||||
section.remove(childPath(path));
|
||||
} else {
|
||||
this.data.remove(path);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean contains(@NotNull String path) {
|
||||
return get(path) != null;
|
||||
|
||||
Reference in New Issue
Block a user