FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
core-java-concepts/immutable-example/src/Address.java at main · basecs101/core-java-concepts · GitHub
basecs101
/
core-java-concepts
Public
Notifications
You must be signed in to change notification settings
Fork
5
Star
5
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
core-java-concepts
/
immutable-example
/
src
/
Address.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
66 lines (54 loc) · 1.35 KB
Breadcrumbs
core-java-concepts
/
immutable-example
/
src
/
Address.java
Copy path
File metadata and controls
66 lines (54 loc) · 1.35 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
public
class
Address
{
String
flatNum
;
String
lane1
;
String
lane2
;
String
city
;
int
postCode
;
public
Address
(
String
flatNum
,
String
lane1
,
String
lane2
,
String
city
,
int
postCode
) {
this
.
flatNum
=
flatNum
;
this
.
lane1
=
lane1
;
this
.
lane2
=
lane2
;
this
.
city
=
city
;
this
.
postCode
=
postCode
;
}
public
String
getFlatNum
() {
return
flatNum
;
}
public
void
setFlatNum
(
String
flatNum
) {
this
.
flatNum
=
flatNum
;
}
public
String
getLane1
() {
return
lane1
;
}
public
void
setLane1
(
String
lane1
) {
this
.
lane1
=
lane1
;
}
public
String
getLane2
() {
return
lane2
;
}
public
void
setLane2
(
String
lane2
) {
this
.
lane2
=
lane2
;
}
public
String
getCity
() {
return
city
;
}
public
void
setCity
(
String
city
) {
this
.
city
=
city
;
}
public
int
getPostCode
() {
return
postCode
;
}
public
void
setPostCode
(
int
postCode
) {
this
.
postCode
=
postCode
;
}
@
Override
public
String
toString
() {
return
"Address{"
+
"flatNum='"
+
flatNum
+
'\''
+
", lane1='"
+
lane1
+
'\''
+
", lane2='"
+
lane2
+
'\''
+
", city='"
+
city
+
'\''
+
", postCode="
+
postCode
+
'}'
;
}
}
Back
|
FazBrowse Home
|
New Git URL