Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.adfnmc.java.text
Class ParsePosition

java.lang.Object
  extended by oracle.adfnmc.java.text.ParsePosition

public class ParsePosition
extends java.lang.Object

ParsePosition is used to track the current position in a String being parsed.


Constructor Summary
ParsePosition(int index)
          Constructs a new ParsePosition at the specified index.
 
Method Summary
 boolean equals(java.lang.Object object)
          Compares the specified object to this ParsePosition and answer if they are equal.
 int getErrorIndex()
          Answers the index at which the parse could not continue.
 int getIndex()
          Answers the current parse position.
 int hashCode()
          Answers an integer hash code for the receiver.
 void setErrorIndex(int index)
          Sets the index at which the parse could not continue.
 void setIndex(int index)
          Sets the current parse position.
 java.lang.String toString()
          Answers the string representation of this FieldPosition.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParsePosition

public ParsePosition(int index)
Constructs a new ParsePosition at the specified index.

Parameters:
index - the index to begin parsing
Method Detail

equals

public boolean equals(java.lang.Object object)
Compares the specified object to this ParsePosition and answer if they are equal. The object must be an instance of ParsePosition and have the same index and error index.

Overrides:
equals in class java.lang.Object
Parameters:
object - the object to compare with this object
Returns:
true if the specified object is equal to this ParsePosition, false otherwise
See Also:
hashCode()

getErrorIndex

public int getErrorIndex()
Answers the index at which the parse could not continue.

Returns:
the index of the parse error, or -1 if there is no error

getIndex

public int getIndex()
Answers the current parse position.

Returns:
the current position

hashCode

public int hashCode()
Answers an integer hash code for the receiver. Objects which are equal answer the same value for this method.

Overrides:
hashCode in class java.lang.Object
Returns:
the receiver's hash
See Also:
equals(java.lang.Object)

setErrorIndex

public void setErrorIndex(int index)
Sets the index at which the parse could not continue.

Parameters:
index - the index of the parse error

setIndex

public void setIndex(int index)
Sets the current parse position.

Parameters:
index - the current parse position

toString

public java.lang.String toString()
Answers the string representation of this FieldPosition.

Overrides:
toString in class java.lang.Object
Returns:
the string representation of this FieldPosition

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.