Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 90ED68B8C for ; Mon, 5 Sep 2011 03:55:20 +0000 (UTC) Received: (qmail 75574 invoked by uid 500); 5 Sep 2011 03:55:19 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 74752 invoked by uid 500); 5 Sep 2011 03:55:15 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 74727 invoked by uid 99); 5 Sep 2011 03:55:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Sep 2011 03:55:10 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of paulus.benedictus@gmail.com designates 209.85.220.171 as permitted sender) Received: from [209.85.220.171] (HELO mail-vx0-f171.google.com) (209.85.220.171) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Sep 2011 03:55:04 +0000 Received: by vxh2 with SMTP id 2so1527271vxh.30 for ; Sun, 04 Sep 2011 20:54:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=dUe8U3uRb8TtwoZtKq15XYpnLspcxJdUsHe9/i+1m+M=; b=KdTRXF89f1GB62puSlwjAqix2UuhhEE/PWm11A+8VsTNJWxfIRkq5yLIDtXHtLxitt G0xMga2L8AuCmlJKBbF/mR8YvTl79p/S5NO+mGLFG8kleAuVTyNewhtO3642PA7uPPuG 3Fsqq0p5EaHRey+39RC49rA2TpXK6E2FWbO6k= MIME-Version: 1.0 Received: by 10.220.75.149 with SMTP id y21mr937898vcj.259.1315194883347; Sun, 04 Sep 2011 20:54:43 -0700 (PDT) Sender: paulus.benedictus@gmail.com Received: by 10.220.186.66 with HTTP; Sun, 4 Sep 2011 20:54:43 -0700 (PDT) In-Reply-To: <4E6431EA.1040302@fastmail.fm> References: <4E63D1F5.7020602@fastmail.fm> <4E6431EA.1040302@fastmail.fm> Date: Sun, 4 Sep 2011 22:54:43 -0500 X-Google-Sender-Auth: owH9_Pdoqf1UFnE6s8fFnyFpsfY Message-ID: Subject: Re: [chain][v2] clever context From: Paul Benedict To: Commons Developers List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org I want to get rid of it extending map. Have it define as asMap() function instead. Especially since JDK 8 is bringing in extension methods, which adds new (and default) methods to all collections, it won't look very nice. Let's make a break now. On Sun, Sep 4, 2011 at 9:20 PM, Raman Gupta wrote= : > On 09/04/2011 04:00 PM, James Carman wrote: >> On Sun, Sep 4, 2011 at 3:44 PM, Simone Tripodi 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-cas= t." =A0:) > > 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 > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org