2 classes with the same name.
public class Predictor()
{
String name;
PredictorA predictorA;
PredictorB predictorB;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public PredictorA getPredictorA() {
return predictorA;
}
public void setPredictorA (PredictorA predictorA) {
this.predictorA = predictorA;
}
public PredictorB getPredictorB() {
return predictorB;
}
public void setPredictorB(PredictorB predictorB) {
this.predictorB = predictorB;
}
}
PredictorA and PredictorB too.
package predictor.version1 classes Predictor, PredictorA, PredictorB.
package predictor.version2 classes Predictor, PredictorA, PredictorB
Other class called Result with several methods.
import XX
public class Result()
{
public void prediction(Predictor predictor)
{
...
predictor.getPredictorA().getName();
...
}
}
I want to be able to use Predictor of package predictor.version1 and Predictor of package predictor.version2 in the class Result and the method prediction withour 2 classes Result.