home *** CD-ROM | disk | FTP | other *** search
- package java.text;
-
- public class FieldPosition {
- int field;
- int endIndex;
- int beginIndex;
- private Format.Field attribute;
-
- public FieldPosition(int var1) {
- this.field = 0;
- this.endIndex = 0;
- this.beginIndex = 0;
- this.field = var1;
- }
-
- public FieldPosition(Format.Field var1) {
- this(var1, -1);
- }
-
- public FieldPosition(Format.Field var1, int var2) {
- this.field = 0;
- this.endIndex = 0;
- this.beginIndex = 0;
- this.attribute = var1;
- this.field = var2;
- }
-
- public Format.Field getFieldAttribute() {
- return this.attribute;
- }
-
- public int getField() {
- return this.field;
- }
-
- public int getBeginIndex() {
- return this.beginIndex;
- }
-
- public int getEndIndex() {
- return this.endIndex;
- }
-
- public void setBeginIndex(int var1) {
- this.beginIndex = var1;
- }
-
- public void setEndIndex(int var1) {
- this.endIndex = var1;
- }
-
- Format.FieldDelegate getFieldDelegate() {
- return new Delegate(this, (1)null);
- }
-
- public boolean equals(Object var1) {
- if (var1 == null) {
- return false;
- } else if (!(var1 instanceof FieldPosition)) {
- return false;
- } else {
- FieldPosition var2 = (FieldPosition)var1;
- if (this.attribute == null) {
- if (var2.attribute != null) {
- return false;
- }
- } else if (!this.attribute.equals(var2.attribute)) {
- return false;
- }
-
- return this.beginIndex == var2.beginIndex && this.endIndex == var2.endIndex && this.field == var2.field;
- }
- }
-
- public int hashCode() {
- return this.field << 24 | this.beginIndex << 16 | this.endIndex;
- }
-
- public String toString() {
- return this.getClass().getName() + "[field=" + this.field + ",attribute=" + this.attribute + ",beginIndex=" + this.beginIndex + ",endIndex=" + this.endIndex + ']';
- }
-
- private boolean matchesField(Format.Field var1) {
- return this.attribute != null ? this.attribute.equals(var1) : false;
- }
-
- private boolean matchesField(Format.Field var1, int var2) {
- if (this.attribute != null) {
- return this.attribute.equals(var1);
- } else {
- return var2 == this.field;
- }
- }
-
- // $FF: synthetic method
- static boolean access$100(FieldPosition var0, Format.Field var1) {
- return var0.matchesField(var1);
- }
-
- // $FF: synthetic method
- static boolean access$200(FieldPosition var0, Format.Field var1, int var2) {
- return var0.matchesField(var1, var2);
- }
- }
-