01: package vicazh.hyperpool.stream;
02:
03: /**
04: * The string value
05: *
06: * @author Victor Zhigunov
07: * @version 0.4.0
08: */
09: public class IString implements Comparable<Object> {
10:
11: private String name;
12:
13: String value;
14:
15: /**
16: * @param name
17: * name
18: * @param value
19: * value
20: */
21: public IString(String name, String 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 value.compareTo((String) o);
32: }
33: }
|