commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raman Gupta <rocketra...@fastmail.fm>
Subject Re: [chain][v2] clever context
Date Mon, 05 Sep 2011 02:20:26 GMT
On 09/04/2011 04:00 PM, James Carman wrote:
> On Sun, Sep 4, 2011 at 3:44 PM, Simone Tripodi <simonetripodi@apache.org> wrote:
>>
>> That is able to 'auto-cast' the retrieved object while Map#get() not.
>>
> 
> I believe the feature is actually called "type inference", not "auto-cast."  :)

Thanks for the explanation... I see now that via the generic method
the compiler infers the return type from the assignment type.

Cheers,
Raman

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message