FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Java/java-list-map/src/main/java/com/hmkcode/vo/Person.java at master · char-n/Java · GitHub
char-n
Java
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
Java
/
java-list-map
/
src
/
main
/
java
/
com
/
hmkcode
/
vo
/
Person.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
34 lines (29 loc) · 587 Bytes
Breadcrumbs
Java
/
java-list-map
/
src
/
main
/
java
/
com
/
hmkcode
/
vo
/
Person.java
Copy path
File metadata and controls
34 lines (29 loc) · 587 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
package
com
.
hmkcode
.
vo
;
public
class
Person
implements
Comparable
<
Person
> {
private
int
age
;
private
String
name
;
public
Person
(
String
name
,
int
age
){
this
.
name
=
name
;
this
.
age
=
age
;
}
public
int
getAge
() {
return
age
;
}
public
void
setAge
(
int
age
) {
this
.
age
=
age
;
}
public
String
getName
() {
return
name
;
}
public
void
setName
(
String
name
) {
this
.
name
=
name
;
}
@
Override
public
String
toString
() {
return
"Person [age="
+
age
+
", name="
+
name
+
"]"
;
}
@
Override
public
int
compareTo
(
Person
person
) {
return
this
.
age
-
person
.
getAge
();
}
}
Back
|
FazBrowse Home
|
New Git URL