Constructor and Description |
---|
ParsePosition(int index)
创建具有给定的初始指标的新parseposition。
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
重写equals
|
int |
getErrorIndex()
检索一个错误发生的索引,或-如果没有设置错误索引,则- 1。
|
int |
getIndex()
检索当前解析位置。
|
int |
hashCode()
返回此parseposition哈希代码。
|
void |
setErrorIndex(int ei)
设置发生分析错误的索引。
|
void |
setIndex(int index)
设置当前的解析位置。
|
String |
toString()
这parseposition返回字符串表示。
|
public ParsePosition(int index)
index
初始指标
public int getIndex()
public void setIndex(int index)
index
-当前分析位置
public void setErrorIndex(int ei)
ei
-指数在这发生了一个错误
public int getErrorIndex()
public boolean equals(Object obj)
equals
方法重写,继承类
Object
obj
-参考对象的比较。
true
obj参数相同;
false
否则。
Object.hashCode()
,
HashMap
public int hashCode()
hashCode
方法重写,继承类
Object
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.