You need to parametrize your interface definition:
import java.util.List;
public interface Idatabank<e> {
List<e> getData();
}
Then define the implementation like this:
public class Xdatabank implements Idatabank<integer> {
List<integer> whatever1;
public List<integer> getData()
{
return whatever1;
}
}