S
SantaJava
package jp.co.nec.rfidmgr.epcis;
import java.util.List;
import java.util.Map;
public class T {
public void temp(List<String> str) {
}
public void temp(List<Integer> str) {
}
public void temp(List<Map<Integer,String>> str) {
}
}
error:
Duplicate method temp(List<String>) in type T T.java
Duplicate method temp(List<Integer>) in type T T.java
Duplicate method temp(List<Map<Integer,String>>) in type T T.java
how can i overwrite a method using generics
import java.util.List;
import java.util.Map;
public class T {
public void temp(List<String> str) {
}
public void temp(List<Integer> str) {
}
public void temp(List<Map<Integer,String>> str) {
}
}
error:
Duplicate method temp(List<String>) in type T T.java
Duplicate method temp(List<Integer>) in type T T.java
Duplicate method temp(List<Map<Integer,String>>) in type T T.java
how can i overwrite a method using generics