Is there a way to get the instance number or id, I mean what you can see in the eclipse Debug> Variables window after the class name in the value column.
thank
See System.identityHashCode, which returns the number that will be returned if Object.hashCodeit was not redefined on the object. This is not an ideal proxy for identification, since several objects can have the same identifier hash code, but it is quite useful for debugging.
System.identityHashCode
Object.hashCode
By default, the debugger displays the result of the method toString()with the hash code of the object. So you can see the value by executing the method hashCode().
toString()
hashCode()
, toString().:
return getClass().getName() + "@" + Integer.toHexString(hashCode());
, , , . , , . , ( AFAIK). , . , ( ), . .
Source: https://habr.com/ru/post/1776959/More articles:The correct way to dynamically create images in an ASP.NET C # web application? - c #Unobtrusive AOP with Spring.Net - spring-aopHow to use multiple development languages - cWhen I try to cache private images (action with changed headers), headers are omitted - cachingWhich text editor can record macros? - web-applicationsколичество просмотров страниц для контента - ruby-on-railsКак сделать вызов подкласса из ссылки базового класса в полиморфной иерархии - c++Rails: read / unread message management - ruby-on-railsСоздание приложения для социальной сети - content-management-systemjQuery ajax check and submit the form, always have to submit twice when ajax returns nofound - jqueryAll Articles