-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProtectedApplication.java
More file actions
36 lines (29 loc) · 910 Bytes
/
Copy pathProtectedApplication.java
File metadata and controls
36 lines (29 loc) · 910 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
package learning.com.applock;
import org.litepal.crud.LitePalSupport;
import java.util.Objects;
public class ProtectedApplication extends LitePalSupport {
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof ProtectedApplication)) return false;
ProtectedApplication that = (ProtectedApplication) o;
return Objects.equals(getPackageName(), that.getPackageName());
}
@Override
public int hashCode() {
return 0;
}
public ProtectedApplication(){
this(null);
}
public ProtectedApplication(String packageName){
this.packageName=packageName;
}
public String getPackageName() {
return packageName;
}
public void setPackageName(String packageName) {
this.packageName = packageName;
}
String packageName;
}