package seedu.address.commons.core;

import java.util.Objects;
import java.util.logging.Level;

/**
 * Config values used by the app
 */
public class Config {

    public static final String DEFAULT_CONFIG_FILE = "config.json";

    // Config values customizable through config file
    private String appTitle = "Address App";
    private Level logLevel = Level.INFO;
    private String userPrefsFilePath = "preferences.json";
    private String addressBookFilePath = "data/addressbook.xml";
    private String addressBookName = "MyAddressBook";


    public Config() {
    }

    public String getAppTitle() {
        return appTitle;
    }

    public void setAppTitle(String appTitle) {
        this.appTitle = appTitle;
    }

    public Level getLogLevel() {
        return logLevel;
    }

    public void setLogLevel(Level logLevel) {
        this.logLevel = logLevel;
    }

    public String getUserPrefsFilePath() {
        return userPrefsFilePath;
    }

    public void setUserPrefsFilePath(String userPrefsFilePath) {
        this.userPrefsFilePath = userPrefsFilePath;
    }

    public String getAddressBookFilePath() {
        return addressBookFilePath;
    }

    public void setAddressBookFilePath(String addressBookFilePath) {
        this.addressBookFilePath = addressBookFilePath;
    }

    public String getAddressBookName() {
        return addressBookName;
    }

    public void setAddressBookName(String addressBookName) {
        this.addressBookName = addressBookName;
    }


    @Override
    public boolean equals(Object other) {
        if (other == this){
            return true;
        }
        if (!(other instanceof Config)){ //this handles null as well.
            return false;
        }

        Config o = (Config)other;

        return Objects.equals(appTitle, o.appTitle)
                && Objects.equals(logLevel, o.logLevel)
                && Objects.equals(userPrefsFilePath, o.userPrefsFilePath)
                && Objects.equals(addressBookFilePath, o.addressBookFilePath)
                && Objects.equals(addressBookName, o.addressBookName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(appTitle, logLevel, userPrefsFilePath, addressBookFilePath, addressBookName);
    }

    @Override
    public String toString(){
        StringBuilder sb = new StringBuilder();
        sb.append("App title : " + appTitle);
        sb.append("\nCurrent log level : " + logLevel);
        sb.append("\nPreference file Location : " + userPrefsFilePath);
        sb.append("\nLocal data file location : " + addressBookFilePath);
        sb.append("\nAddressBook name : " + addressBookName);
        return sb.toString();
    }

}

@@ -307,23 +307,20 @@
 itle = %22
-Address
+Task
  App%22;%0A 
@@ -433,31 +433,28 @@
 vate String 
-address
+task
 BookFilePath
@@ -466,18 +466,11 @@
 ata/
-addressboo
+tas
 k.xm
@@ -488,31 +488,28 @@
 vate String 
-address
+task
 BookName = %22
@@ -510,27 +510,21 @@
 me = %22My
-AddressBook
+Tasks
 %22;%0A%0A%0A   
@@ -1119,31 +1119,28 @@
      return 
-address
+task
 BookFilePath
@@ -1226,31 +1226,28 @@
        this.
-address
+task
 BookFilePath
@@ -1333,23 +1333,20 @@
  return 
-address
+task
 BookName
@@ -1428,23 +1428,20 @@
    this.
-address
+task
 BookName
@@ -1941,31 +1941,28 @@
 ects.equals(
-address
+task
 BookFilePath
@@ -1961,31 +1961,28 @@
 FilePath, o.
-address
+task
 BookFilePath
@@ -2017,23 +2017,20 @@
 .equals(
-address
+task
 BookName
@@ -2033,23 +2033,20 @@
 Name, o.
-address
+task
 BookName
@@ -2160,31 +2160,28 @@
 fsFilePath, 
-address
+task
 BookFilePath
@@ -2182,23 +2182,20 @@
 lePath, 
-address
+task
 BookName
@@ -2518,31 +2518,28 @@
 ation : %22 + 
-address
+task
 BookFilePath
@@ -2585,23 +2585,20 @@
 e : %22 + 
-address
+task
 BookName

Update Config.java file - Change address to task