@Test void testGetChildrenList() { final ConfigurationNode root = BasicConfigurationNode.root(); final ConfigurationNode a = root.appendListNode().setValue("one"); final ConfigurationNode b = root.appendListNode().setValue("two"); assertEquals(Arrays.asList(a, b), root.getChildrenList()); }
@NonNull @Override public List<N> getChildrenList() { final ConfigValue<N, A> value = this.value; return value instanceof ListConfigValue ? ((ListConfigValue<N, A>) value).getUnwrapped() : Collections.emptyList(); }
AbstractConfigurationNode implements ScopedConfigurationNode<N> { @NonNull @Override public List<N> getChildrenList() { final ConfigValue<N, A> value = this.value; return value instanceof ListConfigValue ? ((ListConfigValue<N, A>) value).getUnwrapped() : Collections.emptyList(); } }
AbstractConfigurationNode implements ScopedConfigurationNode<N> { @NonNull @Override public List<N> getChildrenList() { final ConfigValue<N, A> value = this.value; return value instanceof ListConfigValue ? ((ListConfigValue<N, A>) value).getUnwrapped() : Collections.emptyList(); } protected  AbstractConfigurationNode(final @Nullable Object key, final @Nullable A parent, final ConfigurationOptions options); protected  AbstractConfigurationNode(final @Nullable A parent, final A copyOf); }
AbstractConfigurationNode implements ScopedConfigurationNode<N> { @NonNull @Override public List<N> getChildrenList() { final ConfigValue<N, A> value = this.value; return value instanceof ListConfigValue ? ((ListConfigValue<N, A>) value).getUnwrapped() : Collections.emptyList(); } protected  AbstractConfigurationNode(final @Nullable Object key, final @Nullable A parent, final ConfigurationOptions options); protected  AbstractConfigurationNode(final @Nullable A parent, final A copyOf); @Override @Nullable Object getValue(); @Override @Nullable Object getValue(final Type type); @Override N setValue(@Nullable Object newValue); @Override N mergeValuesFrom(final ConfigurationNode other); @Override N getNode(final Object... path); @Override N getNode(final Iterable<?> path); @Override boolean hasChild(final Object... path); @Override boolean hasChild(final Iterable<?> path); @Override boolean isVirtual(); @Override boolean isList(); @Override boolean isMap(); @NonNull @Override List<N> getChildrenList(); @NonNull @Override Map<Object, N> getChildrenMap(); @Override boolean isEmpty(); @Override boolean removeChild(final Object key); @Override N appendListNode(); @Override @Nullable Object getKey(); @Override NodePath getPath(); @Override @Nullable N getParent(); @Override ConfigurationOptions getOptions(); @Override N copy(); @Override T visit(final ConfigurationVisitor<? super N, S, T, E> visitor, final S state); @Override T visit(final ConfigurationVisitor.Safe<? super N, S, T> visitor, final S state); @Override N setHint(final RepresentationHint<V> hint, final @Nullable V value); @SuppressWarnings("unchecked") @Override V getHint(final RepresentationHint<V> hint); @Override @SuppressWarnings("unchecked") V getOwnHint(final RepresentationHint<V> hint); @Override Map<RepresentationHint<?>, ?> getOwnHints(); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); }
AbstractConfigurationNode implements ScopedConfigurationNode<N> { @NonNull @Override public List<N> getChildrenList() { final ConfigValue<N, A> value = this.value; return value instanceof ListConfigValue ? ((ListConfigValue<N, A>) value).getUnwrapped() : Collections.emptyList(); } protected  AbstractConfigurationNode(final @Nullable Object key, final @Nullable A parent, final ConfigurationOptions options); protected  AbstractConfigurationNode(final @Nullable A parent, final A copyOf); @Override @Nullable Object getValue(); @Override @Nullable Object getValue(final Type type); @Override N setValue(@Nullable Object newValue); @Override N mergeValuesFrom(final ConfigurationNode other); @Override N getNode(final Object... path); @Override N getNode(final Iterable<?> path); @Override boolean hasChild(final Object... path); @Override boolean hasChild(final Iterable<?> path); @Override boolean isVirtual(); @Override boolean isList(); @Override boolean isMap(); @NonNull @Override List<N> getChildrenList(); @NonNull @Override Map<Object, N> getChildrenMap(); @Override boolean isEmpty(); @Override boolean removeChild(final Object key); @Override N appendListNode(); @Override @Nullable Object getKey(); @Override NodePath getPath(); @Override @Nullable N getParent(); @Override ConfigurationOptions getOptions(); @Override N copy(); @Override T visit(final ConfigurationVisitor<? super N, S, T, E> visitor, final S state); @Override T visit(final ConfigurationVisitor.Safe<? super N, S, T> visitor, final S state); @Override N setHint(final RepresentationHint<V> hint, final @Nullable V value); @SuppressWarnings("unchecked") @Override V getHint(final RepresentationHint<V> hint); @Override @SuppressWarnings("unchecked") V getOwnHint(final RepresentationHint<V> hint); @Override Map<RepresentationHint<?>, ?> getOwnHints(); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString();  }