/** * A parameterized bean type is considered assignable to a raw required type if the raw types * are identical and all type parameters of the bean type are either unbounded type variables or * java.lang.Object. * <p> * A raw bean type is considered assignable to a parameterized required type if the raw types are * identical and all type parameters of the required type are either unbounded type variables or * java.lang.Object. * */ private boolean matches(Class<?> type1, ParameterizedType type2) { if (!type1.equals(Reflections.getRawType(type2))) { return false; } return Types.isArrayOfUnboundedTypeVariablesOrObjects(type2.getActualTypeArguments()); }
/** * A parameterized bean type is considered assignable to a raw required type if the raw types * are identical and all type parameters of the bean type are either unbounded type variables or * java.lang.Object. * <p> * A raw bean type is considered assignable to a parameterized required type if the raw types are * identical and all type parameters of the required type are either unbounded type variables or * java.lang.Object. * */ private boolean matches(Class<?> type1, ParameterizedType type2) { if (!type1.equals(Reflections.getRawType(type2))) { return false; } return Types.isArrayOfUnboundedTypeVariablesOrObjects(type2.getActualTypeArguments()); }
/** * A parameterized bean type is considered assignable to a raw required type if the raw types * are identical and all type parameters of the bean type are either unbounded type variables or * java.lang.Object. * <p> * A raw bean type is considered assignable to a parameterized required type if the raw types are * identical and all type parameters of the required type are either unbounded type variables or * java.lang.Object. * */ private boolean matches(Class<?> type1, ParameterizedType type2) { if (!type1.equals(Reflections.getRawType(type2))) { return false; } return Types.isArrayOfUnboundedTypeVariablesOrObjects(type2.getActualTypeArguments()); }
/** * A parameterized bean type is considered assignable to a raw required type if the raw types * are identical and all type parameters of the bean type are either unbounded type variables or * java.lang.Object. * <p> * A raw bean type is considered assignable to a parameterized required type if the raw types are * identical and all type parameters of the required type are either unbounded type variables or * java.lang.Object. * */ private boolean matches(Class<?> type1, ParameterizedType type2) { if (!type1.equals(Reflections.getRawType(type2))) { return false; } return Types.isArrayOfUnboundedTypeVariablesOrObjects(type2.getActualTypeArguments()); }
/** * A parameterized bean type is considered assignable to a raw required type if the raw types * are identical and all type parameters of the bean type are either unbounded type variables or * java.lang.Object. * <p> * A raw bean type is considered assignable to a parameterized required type if the raw types are * identical and all type parameters of the required type are either unbounded type variables or * java.lang.Object. * */ private boolean matches(Class<?> type1, ParameterizedType type2) { if (!type1.equals(Reflections.getRawType(type2))) { return false; } return Types.isArrayOfUnboundedTypeVariablesOrObjects(type2.getActualTypeArguments()); }
/** * A parameterized bean type is considered assignable to a raw required type if the raw types * are identical and all type parameters of the bean type are either unbounded type variables or * java.lang.Object. * <p> * A raw bean type is considered assignable to a parameterized required type if the raw types are * identical and all type parameters of the required type are either unbounded type variables or * java.lang.Object. * */ private boolean matches(Class<?> type1, ParameterizedType type2) { if (!type1.equals(Reflections.getRawType(type2))) { return false; } return Types.isArrayOfUnboundedTypeVariablesOrObjects(type2.getActualTypeArguments()); }