Code example for WildcardType

Methods: getLowerBoundsgetUpperBounds

0
	@Override 
	public boolean equals(Object obj) {
		if (! (obj instanceof WildcardType))
			return false; 
		WildcardType other = (WildcardType)obj;
		return Arrays.equals(lowerBounds, other.getLowerBounds())
			&& Arrays.equals(upperBounds, other.getUpperBounds());
	} 
	 
	@Override 
	public int hashCode() { 
		return Arrays.hashCode(lowerBounds) ^ Arrays.hashCode(upperBounds);
	} 
	 
	@Override 
	public String toString() {
		if (lowerBounds.length > 0) {
			return "? super " + GenericTypeReflector.getTypeName(lowerBounds[0]);
		} else if (upperBounds[0] == Object.class) {
			return "?";