1 Clazz.declarePackage ("java.text");
2 c$ = Clazz.decorateAsClass (function () {
5 Clazz.instantialize (this, arguments);
6 }, java.text, "ParsePosition");
7 Clazz.defineMethod (c$, "getIndex",
11 Clazz.defineMethod (c$, "setIndex",
15 Clazz.makeConstructor (c$,
19 Clazz.defineMethod (c$, "setErrorIndex",
23 Clazz.defineMethod (c$, "getErrorIndex",
25 return this.errorIndex;
27 Clazz.overrideMethod (c$, "equals",
29 if (obj == null) return false;
30 if (!(Clazz.instanceOf (obj, java.text.ParsePosition))) return false;
32 return (this.index == other.index && this.errorIndex == other.errorIndex);
34 Clazz.overrideMethod (c$, "hashCode",
36 return (this.errorIndex << 16) | this.index;
38 Clazz.overrideMethod (c$, "toString",
40 return this.getClass ().getName () + "[index=" + this.index + ",errorIndex=" + this.errorIndex + ']';