Code example for WildcardType

Methods: getLowerBounds, getUpperBounds

0
        } 
 
        public boolean equals(Object obj) {
            if (obj instanceof WildcardType) {
                WildcardType that = (WildcardType) obj;
                return Arrays.equals(that.getLowerBounds(),lb)
                    && Arrays.equals(that.getUpperBounds(),ub);
            } 
            return false; 
        } 
    } 
 
    public static Type getTypeArgument(Type type, int i) {
        if (type instanceof ParameterizedType) {
            ParameterizedType p = (ParameterizedType) type;
            return fix(p.getActualTypeArguments()[i]);
        } else 
            throw new IllegalArgumentException();
    } 
 
    /**