API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.text. FieldPosition View Source
Author(s)
Mark Davis
Since
Version
1.22 11/17/05
Serial
Hierarchy
 Object
      FieldPosition
Implements
Subclasses
Description
public class FieldPosition
  FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted output.
See also:    Format
Constructors
public FieldPosition (Field attribute)
  Creates a FieldPosition object for the given field constant.
public FieldPosition (Field attribute, int fieldID)
  Creates a FieldPosition object for the given field.
public FieldPosition (int field)
  Creates a FieldPosition object for the given field.
Methods
Hide/Show inherited methods
public boolean equals (Object obj)
Overrides equals
public int getBeginIndex ()
Retrieves the index of the first character in the requested field.
public int getEndIndex ()
Retrieves the index of the character following the last character in the requested field.
public int getField ()
Retrieves the field identifier.
public Field getFieldAttribute ()
  Returns the field identifier as an attribute constant from one of the Field subclasses.
pack-private FieldDelegate getFieldDelegate ()
  Returns a Format.FieldDelegate instance that is associated with the FieldPosition.
public int hashCode ()
  Returns a hash code for this FieldPosition.
public void setBeginIndex (int bi)
  Sets the begin index.
public void setEndIndex (int ei)
  Sets the end index.
public String toString ()
  Return a string representation of this FieldPosition.
Fields
Hide/Show inherited fields
pack-private int beginIndex
  Output: Start offset of field in text.
pack-private int endIndex
  Output: End offset of field in text.
pack-private int field
  Input: Desired field to determine start and end offsets for.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar