protected SimpleConfigurationNode(Object key, SimpleConfigurationNode parent, ConfigurationOptions options) { Preconditions.checkNotNull(options, "options"); this.key = key; if (parent == null) { attached = true; } this.options = options; this.parent = parent == null ? null : parent; value = new NullConfigValue(this); }
protected void clear() { synchronized (this) { ConfigValue oldValue = this.value; value = new NullConfigValue(this); oldValue.clear(); } }
protected void clear() { synchronized (this) { ConfigValue oldValue = this.value; value = new NullConfigValue(this); oldValue.clear(); } } // }}}
protected void clear() { synchronized (this) { ConfigValue oldValue = this.value; value = new NullConfigValue(this); oldValue.clear(); } }
@NonNull @Override NullConfigValue copy(@NonNull SimpleConfigurationNode holder) { return new NullConfigValue(holder); }
protected SimpleConfigurationNode(@Nullable Object key, @Nullable SimpleConfigurationNode parent, @NonNull ConfigurationOptions options) { Preconditions.checkNotNull(options, "options"); this.key = key; this.options = options; this.parent = parent; this.value = new NullConfigValue(this); // if the parent is null, this node is a root node, and is therefore "attached" if (parent == null) { attached = true; } }
protected SimpleConfigurationNode(@Nullable Object key, @Nullable SimpleConfigurationNode parent, @NonNull ConfigurationOptions options) { Preconditions.checkNotNull(options, "options"); this.key = key; this.options = options; this.parent = parent; this.value = new NullConfigValue(this); // if the parent is null, this node is a root node, and is therefore "attached" if (parent == null) { attached = true; } }