@Test public void buildTest() throws Exception { this.addDelegate(String.class, "test"); DELEGATES.putAll((Map) this.build()); assertTrue(DELEGATES.containsValue("test")); this.addDelegate(Object.class, "test2"); DELEGATES.putAll((Map) this.build()); assertTrue(DELEGATES.containsValue("test")); assertTrue(DELEGATES.get(Object.class).equals("test2")); }
@Override public final T build() { checkAllRequiredServices(); return createInstance(ImmutableClassToInstanceMap.copyOf(delegates)); }
AdapterBuilder implements Builder<T> { @Override public final T build() { checkAllRequiredServices(); return createInstance(ImmutableClassToInstanceMap.copyOf(delegates)); } }
AdapterBuilder implements Builder<T> { @Override public final T build() { checkAllRequiredServices(); return createInstance(ImmutableClassToInstanceMap.copyOf(delegates)); }  }
AdapterBuilder implements Builder<T> { @Override public final T build() { checkAllRequiredServices(); return createInstance(ImmutableClassToInstanceMap.copyOf(delegates)); }  abstract Set<? extends Class<? extends D>> getRequiredDelegates(); final void addDelegate(final Class<V> type,final D impl); @Override final T build(); }
AdapterBuilder implements Builder<T> { @Override public final T build() { checkAllRequiredServices(); return createInstance(ImmutableClassToInstanceMap.copyOf(delegates)); }  abstract Set<? extends Class<? extends D>> getRequiredDelegates(); final void addDelegate(final Class<V> type,final D impl); @Override final T build();  }