FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
java_upgrade/src/main/java/lambdas/Person.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
/
lambdas
/
Person.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
39 lines (29 loc) · 750 Bytes
Breadcrumbs
java_upgrade
/
src
/
main
/
java
/
lambdas
/
Person.java
Copy path
File metadata and controls
39 lines (29 loc) · 750 Bytes
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
package
lambdas
;
public
class
Person
{
private
String
name
;
public
Person
() {}
public
Person
(
String
name
) {
this
.
name
=
name
;
}
public
String
getName
() {
return
name
;
}
public
void
setName
(
String
name
) {
this
.
name
=
name
;
}
@
Override
public
boolean
equals
(
Object
o
) {
if
(
this
==
o
)
return
true
;
if
(!(
o
instanceof
Person
))
return
false
;
Person
person
= (
Person
)
o
;
return
name
!=
null
?
name
.
equals
(
person
.
name
) :
person
.
name
==
null
;
}
@
Override
public
int
hashCode
() {
return
name
!=
null
?
name
.
hashCode
() :
0
;
}
@
Override
public
String
toString
() {
return
String
.
format
(
"Person(%s)"
,
name
);
}
}
Back
|
FazBrowse Home
|
New Git URL