forked from auth0/java-jwt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUserPojo.java
More file actions
42 lines (32 loc) · 845 Bytes
/
UserPojo.java
File metadata and controls
42 lines (32 loc) · 845 Bytes
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
package com.auth0.jwt;
public class UserPojo {
private String name;
private int id;
@SuppressWarnings("unused")
public UserPojo() {
//Required Empty Constructor
}
public UserPojo(String name, int id) {
this.name = name;
this.id = id;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
UserPojo userPojo = (UserPojo) o;
return id == userPojo.id && (name != null ? name.equals(userPojo.name) : userPojo.name == null);
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
}