@Test public void constructMe5() { ConstructMe5OptionalityWithDefaultValue instance = Instantiators .createInstantiator(ConstructMe5OptionalityWithDefaultValue.class) .newInstance((String) null); assertNotNull(instance); assertEquals((Integer) 90, instance.number); }
public static <T> Instantiator<T> createInstantiator( Class<T> klass, InstantiatorModule... modules) { Errors errors = new Errors(); for (Instantiator<T> instantiator : createInstantiator(errors, klass, modules)) { return instantiator; } errors.throwIfHasErrors(); throw new IllegalStateException(); }
Instantiators { public static <T> Instantiator<T> createInstantiator( Class<T> klass, InstantiatorModule... modules) { Errors errors = new Errors(); for (Instantiator<T> instantiator : createInstantiator(errors, klass, modules)) { return instantiator; } errors.throwIfHasErrors(); throw new IllegalStateException(); } }
Instantiators { public static <T> Instantiator<T> createInstantiator( Class<T> klass, InstantiatorModule... modules) { Errors errors = new Errors(); for (Instantiator<T> instantiator : createInstantiator(errors, klass, modules)) { return instantiator; } errors.throwIfHasErrors(); throw new IllegalStateException(); } private  Instantiators(); }
Instantiators { public static <T> Instantiator<T> createInstantiator( Class<T> klass, InstantiatorModule... modules) { Errors errors = new Errors(); for (Instantiator<T> instantiator : createInstantiator(errors, klass, modules)) { return instantiator; } errors.throwIfHasErrors(); throw new IllegalStateException(); } private  Instantiators(); static Instantiator<T> createInstantiator(
      Class<T> klass, InstantiatorModule... modules); @SuppressWarnings({ "unchecked", "rawtypes" }) static Option<Instantiator<T>> createInstantiator(
      Errors errors, Class<T> klass, InstantiatorModule... modules); static Converter<T> createConverter(
      Class<T> klass, InstantiatorModule... modules); static Converter<T> createConverter(
      TypeLiteral<T> typeLiteral, InstantiatorModule... modules); }
Instantiators { public static <T> Instantiator<T> createInstantiator( Class<T> klass, InstantiatorModule... modules) { Errors errors = new Errors(); for (Instantiator<T> instantiator : createInstantiator(errors, klass, modules)) { return instantiator; } errors.throwIfHasErrors(); throw new IllegalStateException(); } private  Instantiators(); static Instantiator<T> createInstantiator(
      Class<T> klass, InstantiatorModule... modules); @SuppressWarnings({ "unchecked", "rawtypes" }) static Option<Instantiator<T>> createInstantiator(
      Errors errors, Class<T> klass, InstantiatorModule... modules); static Converter<T> createConverter(
      Class<T> klass, InstantiatorModule... modules); static Converter<T> createConverter(
      TypeLiteral<T> typeLiteral, InstantiatorModule... modules);  }