You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where T can itself be MetaController<U> (where U is not T), I need a method that can traverse this chain and return the class that is at the bottom of the chain (i.e., not something implementing MetaController).
Knowing Java's type system limitations, it likely can't return a different class it determines at runtime, but could perhaps be able to do it with an auxiliary object like so:
Given an interface like:
where
T
can itself beMetaController<U>
(whereU
is notT
), I need a method that can traverse this chain and return the class that is at the bottom of the chain (i.e., not something implementingMetaController
).Knowing Java's type system limitations, it likely can't return a different class it determines at runtime, but could perhaps be able to do it with an auxiliary object like so:
The text was updated successfully, but these errors were encountered: