A
aaronfude
Hi,
Suppose I have an array of diverse types and I want extract all
objects of a certain type (e.g. Date) and return it as a vector of
that type. Is it possible to write a function that will return arrays
of different types depending on the input parameters. I guess I have
just about answered my own question negatively, but I'm hoping for
something like this:
Vector<Date> dates = collect(set, Date.class);
Vector<Double> doubles = collect(set, Double.class);
Not possible, right?
Thanks!
Aaron Fude
Suppose I have an array of diverse types and I want extract all
objects of a certain type (e.g. Date) and return it as a vector of
that type. Is it possible to write a function that will return arrays
of different types depending on the input parameters. I guess I have
just about answered my own question negatively, but I'm hoping for
something like this:
Vector<Date> dates = collect(set, Date.class);
Vector<Double> doubles = collect(set, Double.class);
Not possible, right?
Thanks!
Aaron Fude