ok, here is what I mean. I have a class that is declared like
public abstract class Agent<E extends Human> extends SuperAgent<E>{
}
and I have
public class Soldier extends Agent<Platoon>
and
public class Platoon extends Human
is there a way to cast Human to Soldier? or use the method instanceof
for these two types? or even have a Human
parameter in Soldier
?