01: package vicazh.hyperpool.stream;
02:
03: /**
04: * The int value
05: *
06: * @author Victor Zhigunov
07: * @version 0.4.0
08: */
09: public class IInt implements Comparable<Object> {
10:
11: private String name;
12:
13: int value;
14:
15: /**
16: * @param name
17: * name
18: * @param value
19: * value
20: */
21: public IInt(String name, int value) {
22: this .name = name;
23: this .value = value;
24: }
25:
26: public String toString() {
27: return name;
28: }
29:
30: public int compareTo(Object o) {
31: return ((Integer) o).compareTo(new Integer(value));
32: }
33: }
|