-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLars.java
87 lines (75 loc) · 2.2 KB
/
Lars.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/*
╭────────────────────────────────────────────────────╮
│ ╵
│ File: Lars.java
│ Project: FirstProject
│
│ Created by Everett Wilber on 21/09/15 at 11:38 AM.
│ ╷
╰────────────────────────────────────────────────────╯
*/
/**
* ITs LArS!!!! :) <script></script>
*/
public class Lars {
private boolean hasBrain;
private String label;
public int id;
public String doing;
public Lars() {
doing = "good";
hasBrain = false;
label = "";
id = 0;
}
/**
* Create a lars with set parameters
* @param hasBrain - Does hi have brain
* @param label - its the label <code>label</code>
* @param id - uuid for the id
*/
public Lars(boolean hasBrain, String label, int id) {
// System.out.println("is null "+(this.id == null));
this.hasBrain = hasBrain;
this.label = label;
this.id = id;
}
public String getLabel() {return label;}
public int getId() {
return id;
}
public String getDoing() {
return doing;
}
public void setDoing(String doing) {
this.doing = doing;
}
public void setHasBrain(boolean hasBrain) {
this.hasBrain = hasBrain;
}
public void setId(int id) {
this.id = id;
}
public void setLabel(String label) {
this.label = label;
}
@Override
public String toString() {
return "Lars{" +
"hasBrain=" + hasBrain +
", label='" + label + '\'' +
", id=" + id +
", doing='" + doing + '\'' +
'}';
}
/**
* A way to test some Lars
* @param args useless stuff from the console args
*/
public static void main(String[] args) {
Lars l1 = new Lars();
Lars l2 = new Lars(true, "lars", 1);
System.out.println(l1);
System.out.println(l2);
}
}