dale5872 / WheelyGoodBikesManagementApp

3rd Year Group Project - creating a new bike-sharing system from scratch.
0 stars 0 forks source link

Make memory more efficient, dont store a NEW location object per field. */ #17

Closed todo[bot] closed 5 years ago

todo[bot] commented 5 years ago

https://github.com/dale5872/WheelyGoodBikesManagementApp/blob/55a338b0741d8414ebefbe8a3be2e458faf48799/src/App/FXControllers/DataFetcher.java#L2-L6


This issue was generated by todo based on a TODO: comment in 55a338b0741d8414ebefbe8a3be2e458faf48799. It's been assigned to @dale5872 because they committed the code.
dale5872 commented 5 years ago

Create a HashMap<locationID, locationObject> to store all the locations, and thus the rest of the application can set references to the locationObjects stored in the HashMap instead of instantiating new objects.

CPairman commented 5 years ago

Closing as duplicate of #57