home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &n…he Search for Life DVD 2 / DVD-ROM.iso / install / jre1_3 / lib / rt.jar / java / text / ParsePosition.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  983 b   |  46 lines

  1. package java.text;
  2.  
  3. public class ParsePosition {
  4.    int index = 0;
  5.    int errorIndex = -1;
  6.  
  7.    public int getIndex() {
  8.       return this.index;
  9.    }
  10.  
  11.    public void setIndex(int var1) {
  12.       this.index = var1;
  13.    }
  14.  
  15.    public ParsePosition(int var1) {
  16.       this.index = var1;
  17.    }
  18.  
  19.    public void setErrorIndex(int var1) {
  20.       this.errorIndex = var1;
  21.    }
  22.  
  23.    public int getErrorIndex() {
  24.       return this.errorIndex;
  25.    }
  26.  
  27.    public boolean equals(Object var1) {
  28.       if (var1 == null) {
  29.          return false;
  30.       } else if (!(var1 instanceof ParsePosition)) {
  31.          return false;
  32.       } else {
  33.          ParsePosition var2 = (ParsePosition)var1;
  34.          return this.index == var2.index && this.errorIndex == var2.errorIndex;
  35.       }
  36.    }
  37.  
  38.    public int hashCode() {
  39.       return this.errorIndex << 16 | this.index;
  40.    }
  41.  
  42.    public String toString() {
  43.       return this.getClass().getName() + "[index=" + this.index + ",errorIndex=" + this.errorIndex + ']';
  44.    }
  45. }
  46.