R
Rakesh
Hi -
For a particular method with a signature like this -
class GlobalClass {
public abstract <R> R process(Object obj_, Class<R>
returnType_);
}
I wanted to quantify it with NodeList<Node> .(substitute R with
NodeList<Node> ).
So I tried this one ..
GlobalClass global = ...
Object obj =
NodeList<Node> list = global.process(obj, NodeList.class );
That code resulted in warnings.
Doing something like -
NodeList<Node> list = global.proces(obj,
NodeList.class<Node.class> );
results in a compilation error.
What is the correct way of doing this.
For a particular method with a signature like this -
class GlobalClass {
public abstract <R> R process(Object obj_, Class<R>
returnType_);
}
I wanted to quantify it with NodeList<Node> .(substitute R with
NodeList<Node> ).
So I tried this one ..
GlobalClass global = ...
Object obj =
NodeList<Node> list = global.process(obj, NodeList.class );
That code resulted in warnings.
Doing something like -
NodeList<Node> list = global.proces(obj,
NodeList.class<Node.class> );
results in a compilation error.
What is the correct way of doing this.