@Test void testImplicitInitialization() throws ObjectMappingException { final BasicConfigurationNode node = BasicConfigurationNode.root(ConfigurationOptions.defaults().withImplicitInitialization(true)); assertNull(node.getValue()); assertEquals(Collections.emptyList(), node.getValue(new TypeToken<List<String>>() {})); assertEquals(Collections.emptyMap(), node.getValue(new TypeToken<Map<String, Integer>>() {})); assertEquals(new Empty(), node.getValue(Empty.class)); }
@Override public @Nullable Object getValue() { return this.value.getValue(); }
AbstractConfigurationNode implements ScopedConfigurationNode<N> { @Override public @Nullable Object getValue() { return this.value.getValue(); } }
AbstractConfigurationNode implements ScopedConfigurationNode<N> { @Override public @Nullable Object getValue() { return this.value.getValue(); } 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> { @Override public @Nullable Object getValue() { return this.value.getValue(); } 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> { @Override public @Nullable Object getValue() { return this.value.getValue(); } 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();  }