FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
java_upgrade/src/main/java/got/Member.java at main · devopstechnetwork/java_upgrade · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
devopstechnetwork
/
java_upgrade
Public
forked from
kousen/java_upgrade
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
java_upgrade
/
src
/
main
/
java
/
got
/
Member.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
120 lines (97 loc) · 2.81 KB
Breadcrumbs
java_upgrade
/
src
/
main
/
java
/
got
/
Member.java
Copy path
File metadata and controls
120 lines (97 loc) · 2.81 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
package
got
;
import
java
.
time
.
LocalDate
;
public
class
Member
implements
Comparable
<
Member
> {
private
Long
id
;
private
Title
title
=
Title
.
LORD
;
private
String
name
;
private
LocalDate
dob
;
private
double
salary
;
private
House
house
;
public
Member
(
Long
id
,
Title
title
,
String
name
,
LocalDate
dob
,
double
salary
,
House
house
) {
this
.
id
=
id
;
this
.
title
=
title
;
this
.
name
=
name
;
this
.
dob
=
dob
;
this
.
salary
=
salary
;
this
.
house
=
house
;
}
@
Override
public
int
compareTo
(
Member
member
) {
return
id
.
compareTo
(
member
.
id
);
}
public
Long
getId
() {
return
id
;
}
public
void
setId
(
Long
id
) {
this
.
id
=
id
;
}
public
Title
getTitle
() {
return
title
;
}
public
void
setTitle
(
Title
title
) {
this
.
title
=
title
;
}
public
String
getName
() {
return
name
;
}
public
void
setName
(
String
name
) {
this
.
name
=
name
;
}
public
LocalDate
getDob
() {
return
dob
;
}
public
void
setDob
(
LocalDate
dob
) {
this
.
dob
=
dob
;
}
public
double
getSalary
() {
return
salary
;
}
public
void
setSalary
(
double
salary
) {
this
.
salary
=
salary
;
}
public
House
getHouse
() {
return
house
;
}
public
String
getHouseName
() {
return
house
.
getName
();
}
public
void
setHouse
(
House
house
) {
this
.
house
=
house
;
}
@
Override
public
String
toString
() {
return
"Member{"
+
"id="
+
id
+
", title="
+
title
+
", name='"
+
name
+
'\''
+
", dob="
+
dob
+
", salary="
+
salary
+
", house="
+
house
+
'}'
;
}
@
Override
public
boolean
equals
(
Object
o
) {
if
(
this
==
o
)
return
true
;
if
(
o
==
null
||
getClass
() !=
o
.
getClass
())
return
false
;
Member
member
= (
Member
)
o
;
if
(
Double
.
compare
(
member
.
salary
,
salary
) !=
0
)
return
false
;
if
(!
id
.
equals
(
member
.
id
))
return
false
;
if
(
title
!=
member
.
title
)
return
false
;
if
(!
name
.
equals
(
member
.
name
))
return
false
;
if
(
dob
!=
null
? !
dob
.
equals
(
member
.
dob
) :
member
.
dob
!=
null
)
return
false
;
return
house
!=
null
?
house
.
equals
(
member
.
house
) :
member
.
house
==
null
;
}
@
Override
public
int
hashCode
() {
int
result
;
long
temp
;
result
=
id
.
hashCode
();
result
=
31
*
result
+
title
.
hashCode
();
result
=
31
*
result
+
name
.
hashCode
();
result
=
31
*
result
+ (
dob
!=
null
?
dob
.
hashCode
() :
0
);
temp
=
Double
.
doubleToLongBits
(
salary
);
result
=
31
*
result
+ (
int
) (
temp
^ (
temp
>>>
32
));
result
=
31
*
result
+ (
house
!=
null
?
house
.
hashCode
() :
0
);
return
result
;
}
}
Back
|
FazBrowse Home
|
New Git URL