Here B and C - Object Type A
Children of B are B1, B2 and B3 - Object Type B
Children of C are C1, C2 and C3 - Object Type C
Children of B1 are B11, B22 and B33 - Object Type D
Similar I have N objects at each level representing a certain Object Type.
If I were push these nodes into a tree structure, because my objects are of different type, how I can sure, I push them in right sequence ?
I currently have my root class with a List of List of List of N List objects.
Java
Last Comment
dpearson
8/22/2022 - Mon
ozo
Here B and C - Object Type A
Children of B are B1, B2 and B3 - Object Type B
Children of C are C1, C2 and C3 - Object Type C
So a type A object can have children of type B or type C
Can a type A object have children of both types?
how I can sure, I push them in right sequence ?
What makes a sequence right or not right?
Jagadeesh M
ASKER
Can a type A object have children of both types?
Yes
What makes a sequence right or not right?
It is just that I have to push them in the same order I mentioned above. Meaning, Root of my tree is of Type A and then push Type B and C and then D etc.
ozo
then if you don't push them in order the node would have no where to go, so you can be sure.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
Children of B are B1, B2 and B3 - Object Type B
Children of C are C1, C2 and C3 - Object Type C
So a type A object can have children of type B or type C
Can a type A object have children of both types?
how I can sure, I push them in right sequence ?
What makes a sequence right or not right?