> public List<?> getTableData() { }
> 
> What good does the <?> serve here?

It avoids the raw type warning we'd get if we simply returned List (vs. 
List<?>). 

> Sure, if TableView accepted a generic type argument that was used instead of 
> ?, this would be super-handy

True, but that would make declaring the list more of a pain.

A similar issue came up a while back - the thread is here:

http://apache-pivot-users.399431.n3.nabble.com/why-ListButton-getListData-returns-List-lt-gt-td2311099.html

My suggestion at the time was to parameterize the property vs. the class, since 
that would solve the cast problem without requiring a type parameter on the 
ListView instance. What do you think?

G

Reply via email to