for (ConstructorKey candidate : lookup.getCandidates(key)) { if (key.isAssignable(candidate)) { return get(candidate);
for (ConstructorKey candidate : lookup.getCandidates(key)) { if (key.isAssignable(candidate)) { return get(candidate);
/** * Access a set of candidates for a given key. Candidates match the * interface an number of parameters for the constructors. A key may * match when it's parameters are subclasses. * * @param key the key to find possible candidates for * @return set of constructors which 'could' match the given key */ public Set<ConstructorKey> getCandidates(ConstructorKey key) { return getCandidates(key.intf(), key.n()); }
/** * Access a set of candidates for a given key. Candidates match the * interface an number of parameters for the constructors. A key may * match when it's parameters are subclasses. * * @param key the key to find possible candidates for * @return set of constructors which 'could' match the given key */ public Set<ConstructorKey> getCandidates(ConstructorKey key) { return getCandidates(key.intf(), key.n()); }