diff --git a/APED/app/src/main/java/com/example/aped/utils/ConfigurationHandler.java b/APED/app/src/main/java/com/example/aped/utils/ConfigurationHandler.java index 9c89348..cf8e85d 100644 --- a/APED/app/src/main/java/com/example/aped/utils/ConfigurationHandler.java +++ b/APED/app/src/main/java/com/example/aped/utils/ConfigurationHandler.java @@ -117,13 +117,20 @@ public class ConfigurationHandler implements IFAVORITES { return deviceName; } - //cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc + /** + * Method to get the name of the current view. + * @return the name of the current view + */ public String getCurrentView() { return configurations.getCurrentView(); } - //cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc - public String setCurrentView(String viewName) { + /** + * Method to set the name of the current view. + * @param viewName the name to be set + * @return the name that has been set + */ + public String setCurrentView(final String viewName) { configurations.setCurrentView(viewName); writeJsonFile(); return getCurrentView(); @@ -205,14 +212,20 @@ public class ConfigurationHandler implements IFAVORITES { /** The names of the favorite devices. **/ private List favoriteNames = new ArrayList<>(); - //cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc + /** + * Getter for currentView. + * @return the name of the current view + */ public String getCurrentView() { return currentView; } - //cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc - public void setCurrentView(String currentView) { - this.currentView = currentView; + /** + * Setter for currentView. + * @param pCurrentView the name of the current view + */ + public void setCurrentView(final String pCurrentView) { + this.currentView = pCurrentView; } /** The name of the current view. **/