Re: OT: Java Code Translation

2006-12-19 Thread Jeff Chastain
>Those are called java "generics", and they are new to JRE 1.5, so we
>can't use them with CF yet.
>   Mark

After doing some more digging, with the right terms now, this appears to be 
correct.  For anybody that wants the full details ... the  refers to a java 
generic which was "invented primarily for implementation of generic 
collections."  With my limited research, generics appear to be a way to 
communicate the type of objects in a collection.  Therefore ...

   Collection c

 would translate to the argument 'c' being a Collection of String.  This 
basically allows for the type of objects within a collection to be communicated 
to the Java compiler and results in "clearer" and "safer" code.

In relation to ColdFusion, since it is type-less, this is of no use.

~|
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:264430
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: OT: Java Code Translation

2006-12-18 Thread Dave Ross
http://java.sun.com/j2se/1.5.0/docs/guide/language/generics.html

> 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  IExpectationSetters expect(T value) {
> > 
> >  public static IExpectationSetters expectLastCall() {
> > 
> > Specifically, I am trying to figure out what  represents.
> 
> I've never seen actual java code like that in my life.
> 
> It looks more like tagged documentation of java code, and the  just 
> 
> represents  the tag for the data type, which in this case is 
> "IExpectationSetters"
> 
Rick

~|
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:264326
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: OT: Java Code Translation

2006-12-18 Thread Gaulin, Mark
Those are called java "generics", and they are new to JRE 1.5, so we
can't use them with CF yet.
Mark

-Original Message-
From: Rick Root [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 18, 2006 11:45 AM
To: CF-Talk
Subject: Re: OT: Java Code Translation

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  IExpectationSetters expect(T value) {
> 
>  public static IExpectationSetters expectLastCall() {
> 
> Specifically, I am trying to figure out what  represents.

I've never seen actual java code like that in my life.

It looks more like tagged documentation of java code, and the  just
represents  the tag for the data type, which in this case is
"IExpectationSetters"

Rick



~|
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:264319
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: OT: Java Code Translation

2006-12-18 Thread Rick Root
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  IExpectationSetters expect(T value) {
> 
>  public static IExpectationSetters expectLastCall() {
> 
> Specifically, I am trying to figure out what  represents.

I've never seen actual java code like that in my life.

It looks more like tagged documentation of java code, and the  just 
represents  the tag for the data type, which in this case is 
"IExpectationSetters"

Rick

~|
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:264314
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: OT: Java Code Translation

2006-12-18 Thread Jake Churchill
I'm a bit rusty too, but I know  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  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  IExpectationSetters expect(T value) {
>
>  public static IExpectationSetters expectLastCall() {
>
> Specifically, I am trying to figure out what  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