Code example for Collection

Methods: containsAllsize

0
        return typeList.size() == 0;
    } 
 
    protected boolean typeSetMatches(Collection<? extends Type> types, Type... requiredTypes) {
        List<Type> typeList = Arrays.asList(requiredTypes);
        return requiredTypes.length == types.size() && types.containsAll(typeList);
    } 
 
    protected <T> Bean<T> getUniqueBean(Class<T> type, Annotation... bindings) {
        Set<Bean<T>> beans = getBeans(type, bindings);
        return resolveUniqueBean(type, beans);
    } 
 
    protected <T> Bean<T> getUniqueBean(TypeLiteral<T> type, Annotation... bindings) {
        Set<Bean<T>> beans = getBeans(type, bindings);
        return resolveUniqueBean(type.getType(), beans);
    } 
 
    @SuppressWarnings({ "unchecked", "rawtypes" }) 
    protected <T> Set<Bean<T>> getBeans(Class<T> type, Annotation... bindings) {