I have an interface
:
public interface Table {
Long getId();
}
And a Class
implementing it:
public class EquipmentTable implements Table {
private Long id;
public Long getId() {
return id;
}
}
Usage:
private List<Table> data = new ArrayList<EquipmentTable>();
Getting the following error:
Type mismatch: cannot convert from ArrayList<EquipmentTable> to List<Table>