Code example for WildcardType

Methods: getUpperBounds

0
	 */ 
	void init(VarMap varMap) {
		ArrayList<Type> upperBoundsList = new ArrayList<Type>();
		upperBoundsList.addAll(Arrays.asList(varMap.map(variable.getBounds())));
		 
		List<Type> wildcardUpperBounds = Arrays.asList(wildcard.getUpperBounds());
		if (wildcardUpperBounds.size() > 0 && wildcardUpperBounds.get(0) == Object.class) {
			// skip the Object bound, we already have a first upper bound from 'variable' 
			upperBoundsList.addAll(wildcardUpperBounds.subList(1, wildcardUpperBounds.size()));
		} else { 
			upperBoundsList.addAll(wildcardUpperBounds);
		} 
		upperBounds = new Type[upperBoundsList.size()]; 
		upperBoundsList.toArray(upperBounds);
	} 
 
	/* 
	 * @see com.googlecode.gentyref.CaptureType#getLowerBounds() 
	 */ 
	public Type[] getLowerBounds() {
Connect your IDE to all the code out there  Get Codota for Java