public boolean equals (Object obj)

Overriding: java.lang.Object

Returns true if the specified object is another StackTraceElement instance representing the same execution point as this instance. Two stack trace elements a and b are equal if and only if:


     equals(a.getClassLoaderName(), b.getClassLoaderName()) &&
     equals(a.getModuleName(), b.getModuleName()) &&
     equals(a.getModuleVersion(), b.getModuleVersion()) &&
     equals(a.getClassName(), b.getClassName()) &&
     equals(a.getMethodName(), b.getMethodName())
     equals(a.getFileName(), b.getFileName()) &&
     a.getLineNumber() == b.getLineNumber()

 
where equals has the semantics of Objects.equals.

Parameters:
obj    the object to be compared with this stack trace element.

Returns:  true if the specified object is another StackTraceElement instance representing the same execution point as this instance.

@revised 9
@spec JPMS