/** * Constructs a new {@code FieldPosition} for the specified {@code Field} * attribute and field id. * * @param attribute * the field attribute to identify. * @param field * the field to identify. */ public FieldPosition(FormatNS.Field attribute, int field) { myAttribute = attribute; myField = field; }
/** * Constructs a new {@code FieldPosition} for the specified {@code Field} * attribute. * * @param attribute * the field attribute to identify. */ public FieldPosition(FormatNS.Field attribute) { myAttribute = attribute; myField = -1; }