Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2011 itemis AG (http://www.itemis.eu) and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html /
  
  package testdata;
  
 import java.util.List;

Author(s):
Sebastian Zarnekow - Initial contribution and API
 
 @SuppressWarnings("unused")
 public class OverloadedMethods<V> {
 
 	public int usedConstructor = 0; 
 	
 	public OverloadedMethods() {
 	}
 	
 	public OverloadedMethods(Collection<V> collectionIterable<? extends V> iterable) {
 	}
 	
 	public OverloadedMethods(Iterable<? extends V> iterableCollection<V> collection) {
 	}
 	
 	public OverloadedMethods(List<V> listList<V> otherList) {
 	}
 	
 	public OverloadedMethods(Iterable<? extends V> iterableIterable<? extends V> otherIterable) {
 	}
 	
 	public String overloadedInt(int i) {
 		return "overloadedInt(int)";
 	}
 	
 	public String overloadedInt(Integer i) {
 		return "overloadedInt(Integer)";
 	}
 	
 	public <T> String overloaded(Collection<T> collectionIterable<? extends T> iterable) {
 		return "overloaded(Collection,Iterable)";
 	}
 	
 	public <T> String overloaded(Iterable<? extends T> iterableCollection<T> collection) {
 		return "overloaded(Iterable,Collection)";
 	}
 	
 	public <T> String overloaded(List<T> listList<T> otherList) {
 		return "overloaded(List,List)";
 	}

Since:
2.4
 
 	public <T> String overloaded(Object objectObject otherObject) {
 		return "overloaded(Object,Object)";
 	}
 	
 	public <T> String overloaded(Iterable<? extends T> iterableIterable<? extends T> otherIterable) {
 		return "overloaded(Iterable,Iterable)";
 	}
 	
 	public String overloaded2(Collection<V> collectionIterable<? extends V> iterable) {
 		return "overloaded2(Collection,Iterable)";
 	}
 	
 	public String overloaded2(Iterable<? extends V> iterableCollection<V> collection) {
 		return "overloaded2(Iterable,Collection)";
 	}
 	
 	public String overloaded2(List<V> listList<V> otherList) {
 		return "overloaded2(List,List)";
 	}
 	
 	public String overloaded2(Iterable<? extends V> iterableIterable<? extends V> otherIterable) {
 		return "overloaded2(Iterable,Iterable)";
 	}
 	
 	public <T> String overloaded3(List<T> listList<T> otherList) {
 		return "overloaded(List,List)";
 	}

Since:
2.3
 
 	public static <T1> int overloadedTypeParameters(String s) { return 1; }

Since:
2.3
 
 	public static <T1, T2> long overloadedTypeParameters(Object o) { return 1L; }

Since:
2.3
	public static long overloadedVarArgs(Object o1Object o2) { return 1L; }

Since:
2.3
	public static int overloadedVarArgs(String... s) { return s.length; }

Since:
2.4
	public static <K> String addAllOverloaded(Collection<? super K> collectionIterable<K> elements) {
		return OverloadedMethods.addAllExtends(collectionelements);
	}

Since:
2.4
	public static <K> String addAllOverloaded(Iterable<K> elementsCollection<? super K> collection) {
		return addAllExtends(collectionelements);
	}

Since:
2.4
	public static <K> boolean addAllOverloaded(Collection<? super K> collectionCollection<K> elements) {
		return collection.addAll(elements);
	}

Since:
2.4
	public static <K> String addAllSuperExtends(Collection<? super K> collectionIterable<? extends K> elements) {
		return OverloadedMethods.addAllExtends(collectionelements);
	}

Since:
2.4
	public static <K> Collection<K> addAllSuperExtends2(Collection<? super K> collectionIterable<? extends K> elements) {
		return null;
	}
	private static  <T> String addAllExtends(Collection<T> collectionIterable<? extends T> elements) {
		return "addAll(Collection,Iterable)";
	}
New to GrepCode? Check out our FAQ X