Code example for WildcardType

Methods: getLowerBounds, getUpperBounds

0
        } 
 
        public boolean equals(Object o) {
            if (o instanceof WildcardType) {
                WildcardType wt = (WildcardType) o;
                return Arrays.equals(upperBounds, wt.getUpperBounds()) &&
                        Arrays.equals(lowerBounds, wt.getLowerBounds());
            } else 
                return false; 
        } 
 
        public int hashCode() { 
            return Arrays.hashCode(upperBounds) ^ Arrays.hashCode(lowerBounds);
        } 
 
        public String toString() {
            StringBuilder sb = new StringBuilder("?");
            if (upperBounds.length > 1 || upperBounds[0] != Object.class) {
                sb.append(" extends");
                appendBounds(sb, upperBounds);
            }