I'm working with a TreeTable
and when changing cell factory I am required to pass a
Callback<TreeTableColumn<A, capture of ?>, TreeTableCell<A, capture of ?>>
where A is a class I am working with but I have no idea how to work with the "capture of ?"
I tried to create
new Callback<TreeTableColumn<A, ?>, TreeTableCell<A, ?>>
but IDEA shows warning
setCellFactory(Callback<TreeTableColumn<A, capture<?>>, TreeTableCell<A, capture<?>>>) in TreeTableColumn cannot be applied to (anonymous Callback<TreeTableColumn<A, ?>, TreeTableCell<A, ?>>)
I tried using specific classes (like String) instead of "?" as well, but nothing helped.
Could anyone explain to me how to work with this?
Thank you.
EDIT:
I gathered a little bit more information.. the CellFactory
of TreeTableColumn<S,T>
should be Callback<TreeTableColumn<S,T>
,TreeTableCell<S,T>>
, however, the TreeTableColumn that I'm working with is created as a raw type (in a library).
Using a raw type Callback works. But are there any other options how to work this around?