How to read variable structure in Java?

I am trying to extract relevant information from a related object in Java. This object has the structure:

String name;
Array setOfOrders;

Each item in setOfOrders has

int orderID;
String orderName;
List<BuildingBlock> listOfBlocks;

every building block has

String shortName;
String fullName;
String blockID;
Array<Element> elements;

I tried to study the source code, but the branches seem endless. I tried using debugging mode in NetBeans, but every third variable (setOfOrders, listOfBlocks, elements) just keeps expanding. It is like trying to find which folders are taking up space on your disk. In Explorer, this takes forever, while some disk analyzers show a clear map of space usage.

, ? ? ( , IDE, ?), ? ?

+4
4

, .

toString, , .

, , .

(, session, , ) zillion . . , .

+1

, . Runtime, - " " .

, , , system.out. .

+2

( ): (a) ,
(b) ( .class .java, ).
(c) *

  • , , for(i=0; i<2; i++){ i<100000. , SQL, .
+2

-, toString() -, . , , .

Secondly, if you have such a structure, you may also have some methods for querying the data structure. You can use them to request the necessary information. Or, if there are no such methods, you can write them, since they are probably not only necessary for debugging, but can also be useful for your application.

+1
source

All Articles