I'm a bit rusty too, but I know <T> represents a data type. There are
certain times when you can have an object that takes multiple data
types. A Vector is a good example. If you specify the data type <T> it
just forces it to take that data type. I think this speeds up
processing just slightly because the JVM doesn't have to figure it out.
-Jake
Jeff Chastain wrote:
> I am trying to convert some Java code into ColdFusion and apparently my Java
> is a bit rusty. Can anybody explain the difference between the following two
> statements?
>
> public static <T> IExpectationSetters<T> expect(T value) {
>
> public static IExpectationSetters<Object> expectLastCall() {
>
> Specifically, I am trying to figure out what <T> represents.
>
> Thanks.
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264309
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4