Code example for WildcardType

Methods: getLowerBoundsgetUpperBounds

0
    public boolean equals(Object o) {
        if(!(o instanceof WildcardType)) {
            return false; 
        } 
        WildcardType that = (WildcardType) o;
        return Arrays.equals(getLowerBounds(), that.getLowerBounds()) &&
                Arrays.equals(getUpperBounds(), that.getUpperBounds());
    } 
 
    @Override 
    public int hashCode() { 
        return 31 * Arrays.hashCode(getLowerBounds()) +
                Arrays.hashCode(getUpperBounds());
    } 
 
    @Override 
    public String toString() {
        StringBuilder sb = new StringBuilder("?");
        if (extendsBound.length() > 0) {
            sb.append(" extends ").append(extendsBound);
Contextual code suggestions in your IDE  Get Codota for Java