Rename getInstance() -> getInputData(). Override getInputData() in solution classes to return correct type instead of abstract one.

This commit is contained in:
Holt59
2018-03-01 21:20:17 +01:00
parent 2fdaf30510
commit 4fae0e890c
8 changed files with 62 additions and 48 deletions

View File

@@ -70,7 +70,7 @@ public class ShortestPathSolutionPanel extends JPanel implements DrawingChangeLi
* @return Data assocaited with this bundle.
*/
public ShortestPathData getData() {
return (ShortestPathData) this.solution.getInstance();
return this.solution.getInputData();
}
/**