1 /* Copyright (C) 1998, 1999 Red Hat, Inc.
3 This file is part of libgcj.
5 This software is copyrighted work licensed under the terms of the
6 Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
12 * @author Per Bothner <bothner@cygnus.com>
13 * @date October 25, 1998.
15 /* Written using "Java Class Libraries", 2nd edition, plus online
16 * API docs for JDK 1.2 beta from http://www.javasoft.com.
17 * Status: Believed complete and correct.
18 * Includes JDK 1.2 methods.
21 public class FieldPosition
27 public FieldPosition (int field)
32 public int getField ()
37 public int getBeginIndex ()
42 public int getEndIndex ()
47 public void setBeginIndex (int index)
52 public void setEndIndex (int index)
57 public boolean equals (Object obj)
59 if (! (obj instanceof FieldPosition))
61 FieldPosition other = (FieldPosition) obj;
62 return (field == other.field
63 && beginIndex == other.beginIndex && endIndex == other.endIndex);