Code example for HashMultimap

Methods: get

0
  } 
 
  @SuppressWarnings("unchecked") 
  @Override 
  public <T> Collection<T> instantiateAllImplementers(Class<T> interfaceClass, Object... parameter) {
    Set<T> objects = (Set<T>) objectsForInterfaces.get(interfaceClass);
    return new ArrayList<>(objects);
  } 
 
  public void add(Class<?> interfaceClass, Object instance) {
    objectsForInterfaces.put(interfaceClass, instance);
  } 
} 
Experience pair programming with AI  Get Codota for Java