1
2
3
4
5
6
7 public class PureStat
8 {
9 String _stat;
10
11 private PureStat(String stat)
12 {
13 _stat = stat;
14 }
15
16
17
18
19 public String toString()
20 {
21 String className = getClass().getName();
22 int lastDot = className.lastIndexOf('.');
23 if(lastDot!=-1)className = className.substring(lastDot+1);
24
25 return className+_stat;
26 }
27
28 public final static PureStat AT = new PureStat("AT");
29 public final static PureStat ON = new PureStat("ON");
30 public final static PureStat INSIDE = new PureStat("INSIDE");
31 public final static PureStat OUTSIDE = new PureStat("OUTSIDE");
32
33 }