1
2
3
4
5
6
7
8
9
10
11
12
13public
14abstract
15class AbstractOrdering
16 implements Ordering
17{
18
19
20
21 public
22 abstract
23 boolean eq(Object v2);
24
25 public
26 abstract
27 boolean ge(Object v2);
28
29
30
31
32
33 public
34 boolean ne(Object v2) {
35 return
36 ! eq(v2);
37 }
38
39 public
40 boolean gr(Object v2) {
41 return
42 ge(v2) && ! eq(v2);
43 }
44
45 public
46 boolean le(Object v2) {
47 return
48 ! gr(v2);
49 }
50
51 public
52 boolean lt(Object v2) {
53 return
54 ! ge(v2);
55 }
56
57}
58
59