@Override public CommentedConfigurationNode createEmptyNode(ConfigurationOptions options) { options = options.setAcceptedTypes(ImmutableSet.of(Map.class, List.class, Double.class, Long.class, Integer.class, Boolean.class, String.class, Number.class)); return SimpleCommentedConfigurationNode.root(options); }
@Override protected SimpleCommentedConfigurationNode createNode(Object path) { return new SimpleCommentedConfigurationNode(path, this, getOptions()); }
@Override public SimpleCommentedConfigurationNode setComment(String comment) { attachIfNecessary(); this.comment.set(comment); return this; }
public static SimpleCommentedConfigurationNode root(ConfigurationOptions options) { return new SimpleCommentedConfigurationNode(null, null, options); }
@Override public SimpleCommentedConfigurationNode setValue(Object value) { if (value instanceof CommentedConfigurationNode && ((CommentedConfigurationNode) value).getComment().isPresent()) { setComment(((CommentedConfigurationNode) value).getComment().get()); } return (SimpleCommentedConfigurationNode)super.setValue(value); }
@NonNull public static SimpleCommentedConfigurationNode root(@NonNull ConfigurationOptions options) { return new SimpleCommentedConfigurationNode(null, null, options); }
@NonNull @Override public SimpleCommentedConfigurationNode setValue(@Nullable Object value) { if (value instanceof CommentedConfigurationNode && ((CommentedConfigurationNode) value).getComment().isPresent()) { setComment(((CommentedConfigurationNode) value).getComment().get()); } return (SimpleCommentedConfigurationNode) super.setValue(value); }
@Override public CommentedConfigurationNode createEmptyNode(ConfigurationOptions options) { options = options.setAcceptedTypes(ImmutableSet.of(Map.class, List.class, Double.class, Float.class, Long.class, Integer.class, Boolean.class, String.class, byte[].class)); return SimpleCommentedConfigurationNode.root(options); }
@Override protected SimpleCommentedConfigurationNode createNode(Object path) { return new SimpleCommentedConfigurationNode(path, this, getOptions()); }
@NonNull @Override protected SimpleCommentedConfigurationNode copy(@Nullable SimpleConfigurationNode parent) { SimpleCommentedConfigurationNode copy = new SimpleCommentedConfigurationNode(parent, this); copy.comment = this.comment; return copy; }
@NonNull @Override public SimpleCommentedConfigurationNode setValue(@Nullable Object value) { if (value instanceof CommentedConfigurationNode && ((CommentedConfigurationNode) value).getComment().isPresent()) { setComment(((CommentedConfigurationNode) value).getComment().get()); } return (SimpleCommentedConfigurationNode) super.setValue(value); }
@NonNull @Override public SimpleCommentedConfigurationNode setComment(@Nullable String comment) { attachIfNecessary(); this.comment.set(comment); return this; }
public static SimpleCommentedConfigurationNode root() { return root(ConfigurationOptions.defaults()); }
@Override protected SimpleCommentedConfigurationNode createNode(Object path) { return new SimpleCommentedConfigurationNode(path, this, getOptions()); }
@NonNull public static SimpleCommentedConfigurationNode root(@NonNull ConfigurationOptions options) { return new SimpleCommentedConfigurationNode(null, null, options); }
@NonNull @Override public SimpleCommentedConfigurationNode setComment(@Nullable String comment) { attachIfNecessary(); this.comment = comment; return this; }
@NonNull public static SimpleCommentedConfigurationNode root() { return root(ConfigurationOptions.defaults()); }
@NonNull public static SimpleCommentedConfigurationNode root() { return root(ConfigurationOptions.defaults()); }
@NonNull @Override public CommentedConfigurationNode createEmptyNode(@NonNull ConfigurationOptions options) { options = options.setAcceptedTypes(ImmutableSet.of(Map.class, List.class, Double.class, Long.class, Integer.class, Boolean.class, String.class, Number.class)); return SimpleCommentedConfigurationNode.root(options); }
@NonNull @Override public CommentedConfigurationNode createEmptyNode(@NonNull ConfigurationOptions options) { options = options.setAcceptedTypes(ImmutableSet.of(Map.class, List.class, Double.class, Float.class, Long.class, Integer.class, Boolean.class, String.class, byte[].class)); return SimpleCommentedConfigurationNode.root(options); }