Generic classes in ivyscript
Hello IvyTeam
Is there a simple way calling self made generic classes? Like the List.
Data:<br>
dao Dao<Item>
in Ivyscript:<br> calling dao.get(id) the response would be of type Item.
generic Class:<br>
T get(int id)
It would be great if there is a solution.
Thanks for an answer and GreetingsGreetings
Edit:
Trying to extend a class with the Generic doesn't help any further.<br>
In java code those objects return items as it should and in ivyscript Objects are still returned.
public class DaoItemTest extends Dao<Item> {
public DaoItemTest() {
super(Item.class);
}
}