Created
November 17, 2016 19:07
-
-
Save chermehdi/e140889244081c118f0068ac2718ced8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// simple class written as a Java bean | |
public class Settings { | |
private String settings1; | |
private Integer settings2; | |
public Settings(){} | |
public Settings(String settings1, Integer settings2) { | |
this.settings1 = settings1; | |
this.settings2 = settings2; | |
} | |
public String getSettings1() { | |
return settings1; | |
} | |
public void setSettings1(String settings1) { | |
this.settings1 = settings1; | |
} | |
public Integer getSettings2() { | |
return settings2; | |
} | |
public void setSettings2(Integer settings2) { | |
this.settings2 = settings2; | |
} | |
@Override | |
public String toString() { | |
return "Settings{" + | |
"settings1='" + settings1 + '\'' + | |
", settings2=" + settings2 + | |
'}'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment