vuonghungvinh / tree-view-list-android

Automatically exported from code.google.com/p/tree-view-list-android
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

id for complex node is not working #21

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. change the Node to be a class that contains 2 arrays
2. The ID at TreeBuilder<T> is defined as T and is not working with the current 
code

What is the expected output? What do you see instead?
that the functions will be able to handel complex Node.

What version of the product are you using? On what operating system?
Android

Please provide any additional information below.

Original issue reported on code.google.com by Ophir....@gmail.com on 2 Feb 2012 at 1:08

GoogleCodeExporter commented 8 years ago
Unfortunately it's not very easy to fix. It started with the thought that I 
will be able to do as you want but as I develop it, it turned out that the only 
reasonable way is to fix the type to Integer only. the only way to do it 
otherwise is to have a map somewhere on the side where you keep ID as key and 
the complex class as value and perform the mapping somewhere within your code.

Original comment by ja...@potiuk.com on 2 Feb 2012 at 7:20