-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApple.java
More file actions
51 lines (39 loc) · 885 Bytes
/
Copy pathApple.java
File metadata and controls
51 lines (39 loc) · 885 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
43
44
45
46
47
48
49
50
51
/**
* Bestpay.com.cn Inc.
* Copyright (c) 2011-2019 All Rights Reserved.
*/
package ericzz.java8.base.pojo;
import java.util.UUID;
/**
*
*
* @author zz_huns
* @version Id: Apple.java, v 0.1 2019/2/7 12:57 PM zz_huns Exp $$
*/
public class Apple implements Comparable<Apple> {
private Integer color;
private UUID id;
public UUID getId() {
return id;
}
public void setId(UUID id) {
this.id = id;
}
public Integer getColor() {
return color;
}
public void setColor(Integer color) {
this.color = color;
}
@Override
public boolean equals(Object o) {
return false;
}
@Override
public int hashCode() {
return 1;
}
@Override
public int compareTo(Apple o) {
return this.getColor().compareTo(o.getColor());
}
}