Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e1f95a commit 1884b01Copy full SHA for 1884b01
src/test/java/com/jfxdev/TestObj.java
@@ -28,12 +28,14 @@ public class TestObj {
28
private String name;
29
private String city;
30
private String country;
31
+ private boolean active;
32
33
public TestObj(int id, String name, String city, String country) {
34
this.id = id;
35
this.name = name;
36
this.city = city;
37
this.country = country;
38
+ this.active = Math.random() >= 0.5;
39
}
40
41
public int getId() {
@@ -67,4 +69,8 @@ public String getCountry() {
67
69
public void setCountry(String country) {
68
70
71
72
+
73
+ public boolean isActive() { return this.active; }
74
75
+ public void setActive(boolean active) { this.active = active; }
76
0 commit comments