[ Web Proxy ]
URL:
Viewing: https://docs.oracle.com/en/java/javase/24/docs/api/java.base/java/text/ParsePosition.html [Back]  [Original]

ParsePosition (Java SE 24 & JDK 24)
Contents 
Hide sidebar ❮❯ Show sidebar
  1. Description
  2. Constructor Summary
  3. Method Summary
  4. Constructor Details
    1. ParsePosition(int)
  5. Method Details
    1. getIndex()
    2. setIndex(int)
    3. setErrorIndex(int)
    4. getErrorIndex()
    5. equals(Object)
    6. hashCode()
    7. toString()

Class ParsePosition

java.lang.Object
java.text.ParsePosition

public class ParsePosition extends Object
ParsePosition is a simple class used by Format and its subclasses to keep track of the current position during parsing. The parseObject method in the various Format classes requires a ParsePosition object as an argument.

By design, as you parse through a string with different formats, you can use the same ParsePosition, since the index parameter records the current position.

Since:
1.1
See Also:


Web Proxy Viewer  |  New URL  |  Original Page