/*
 * Java core library component.
 *
 * Copyright (c) 1997, 1998
 *      Transvirtual Technologies, Inc.  All rights reserved.
 *
 * See the file "license.terms" for information on usage and redistribution
 * of this file.
 */

package java.text;

public class ParsePosition {

int idx;

public ParsePosition(int idx) {
	this.idx = idx;
}

public int getIndex() {
	return (idx);
}

public void setIndex(int idx) {
	this.idx = idx;
}

}

@@ -276,18 +276,55 @@
  %7B%0A%0A
-int idx;%0A%0A
+%09private int index;%0A%09private int errorIndex;%0A%0A%09
 publ
@@ -349,34 +349,67 @@
 nt i
-d
+nde
 x) %7B%0A
+%09
 %09this.i
-d
+nde
 x = i
-dx;%0A
+ndex;%0A%09%09this.errorIndex = -1;%0A%09
 %7D%0A%0A
+%09
 publ
@@ -432,16 +432,17 @@
 ) %7B%0A
+%09
 %09return 
 (idx
@@ -441,18 +441,136 @@
 urn 
-(idx)
+index;%0A%09%7D%0A%0A%09public void setIndex(int index) %7B%0A%09%09this.index = index
 ;%0A
+%09
 %7D%0A%0A
+%09public int getErrorIndex() %7B%0A%09%09return errorIndex;%0A%09%7D%0A%0A%09
 publ
@@ -572,32 +572,37 @@
 %09public void set
+Error
 Index(int idx) %7B
@@ -599,33 +599,476 @@
 int 
-idx) %7B%0A%09
+errorIndex) %7B%0A%09%09this.errorIndex = errorIndex;%0A%09%7D%0A%0A%09public boolean equals(Object obj) %7B%0A%09%09if (obj == null %7C%7C !getClass().equals(obj.getClass()))%0A%09%09%09return false;%0A%09%09ParsePosition that = (ParsePosition)obj;%0A%09%09return 
 this.i
-dx = id
+ndex == that.index%0A%09%09    && this.errorIndex == that.errorInde
 x;%0A
+%09
 %7D%0A%0A
-%7D
+%09public int hashCode() %7B%0A%09%09return index + errorIndex;%0A%09%7D%0A%0A%09public String toString() %7B%0A%09%09return getClass().getName()%0A%09%09    + %22%5Bindex=%22 + index + %22,errorIndex=%22 + errorIndex + '%5D';%0A%09%7D%0A%7D%0A
 %0A

Add missing methods.