@Test void testResolveWildcard() throws ObjectMappingException { final ConfigurationNode node = BasicConfigurationNode.root(ConfigurationOptions.defaults() .withSerializers(b -> b.register(Object.class, new PassthroughSerializer())), n -> { n.appendListNode().setValue("a string"); n.appendListNode().setValue(14); }); final @Nullable List<?> value = node.getValue(new TypeToken<List<?>>() {}); assertEquals(Arrays.asList("a string", 14), value); }
public static TypeSerializerCollection defaults() { return DEFAULTS; }
TypeSerializerCollection { public static TypeSerializerCollection defaults() { return DEFAULTS; } }
TypeSerializerCollection { public static TypeSerializerCollection defaults() { return DEFAULTS; } private  TypeSerializerCollection(final @Nullable TypeSerializerCollection parent, final List<RegisteredSerializer> serializers); }
TypeSerializerCollection { public static TypeSerializerCollection defaults() { return DEFAULTS; } private  TypeSerializerCollection(final @Nullable TypeSerializerCollection parent, final List<RegisteredSerializer> serializers); @SuppressWarnings("unchecked") TypeSerializer<T> get(final TypeToken<T> token); @SuppressWarnings("unchecked") TypeSerializer<T> get(final Class<T> token); @Nullable TypeSerializer<?> get(Type type); Builder childBuilder(); @Override String toString(); @Override boolean equals(final Object other); @Override int hashCode(); static Builder builder(); static TypeSerializerCollection defaults(); }
TypeSerializerCollection { public static TypeSerializerCollection defaults() { return DEFAULTS; } private  TypeSerializerCollection(final @Nullable TypeSerializerCollection parent, final List<RegisteredSerializer> serializers); @SuppressWarnings("unchecked") TypeSerializer<T> get(final TypeToken<T> token); @SuppressWarnings("unchecked") TypeSerializer<T> get(final Class<T> token); @Nullable TypeSerializer<?> get(Type type); Builder childBuilder(); @Override String toString(); @Override boolean equals(final Object other); @Override int hashCode(); static Builder builder(); static TypeSerializerCollection defaults();  }