|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.StackTraceElement
Method Summary | |
boolean |
equals(Object)
Determines if this object is "equal" to another object. |
String |
getClassName()
|
String |
getFileName()
|
int |
getLineNumber()
|
String |
getMethodName()
|
int |
hashCode()
|
boolean |
isNativeMethod()
|
String |
toString()
|
Method Detail |
public String getFileName()
public int getLineNumber()
public String getClassName()
public String getMethodName()
public boolean isNativeMethod()
public String toString()
toString
in class Object
public boolean equals(Object)
Object
In general, objects should be instances of the same class
with the same guts to be considered equal. For example,
the code below only prints same value since
s
and t
are different strings though
they have the same value: "hello".
String s = new String("hello"); String t = new String("hello"); if (s.equals(t)) System.out.println("same value"); if (s == t) System.out.println("same string");
equals
in class Object
java.lang.Object
is
- the other Object to which this one is comparedother
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |