Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 91158 invoked from network); 13 Oct 2010 00:55:28 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Oct 2010 00:55:28 -0000 Received: (qmail 1104 invoked by uid 500); 13 Oct 2010 00:55:28 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 981 invoked by uid 500); 13 Oct 2010 00:55:28 -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 973 invoked by uid 99); 13 Oct 2010 00:55:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Oct 2010 00:55:28 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sebbaz@gmail.com designates 209.85.216.178 as permitted sender) Received: from [209.85.216.178] (HELO mail-qy0-f178.google.com) (209.85.216.178) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Oct 2010 00:55:20 +0000 Received: by qyk35 with SMTP id 35so63361qyk.9 for ; Tue, 12 Oct 2010 17:54:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=f6uWkJChJzPWn5mFrtPi4T2cvr8IhAl6ARKT+iHFev0=; b=hp8hrTQvrKtZaosAEfDfv6HnEUxopPPRZCDk/flkQTy6MdCnmChzuxkPFz+zegG3yw 5o8mUP19mFVv1JIyQeK33e/MauwQKoG7f9YmrtjrTNeTjSwQFDsmMEwckDkXCp9iRdmU w8UxN7GXrX0bFgxahhx1GwOtd0smC0MZqlj3o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=BKg9k/6pooh9FnE6n6NnASMJQlNhuXmjMbUViNNW5H5mme/NncwgdcaBCWarjTc1L/ 27tKV3FJPta0ecIOMUItwCXBP6WfV78Nd9uiNNPpf+yRumyPdXN9Hz7PSoc/PKScd9M8 g3oXUxXkKhdwJAc/NkDANRHry8FSmjS/KrUoc= MIME-Version: 1.0 Received: by 10.224.11.141 with SMTP id t13mr4184639qat.143.1286931299688; Tue, 12 Oct 2010 17:54:59 -0700 (PDT) Received: by 10.229.230.213 with HTTP; Tue, 12 Oct 2010 17:54:59 -0700 (PDT) In-Reply-To: References: Date: Wed, 13 Oct 2010 01:54:59 +0100 Message-ID: Subject: Re: [pool] CursorableLinkedList - why does it use a mix of , Object and ? From: sebb To: Commons Developers List Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On 13 October 2010 01:15, Paul Benedict wrote: > The whole convention comes from java.util where there are > "elements" of a collection. Yes, I know. > I don't like to mix things. I think type T > would be find everywhere unless you have multiple types and need a > memorable letter. As far as I can tell, the collection only supports a single type, similar to List, and one would not expect to see other types used in such a List class. But I could be wrong which is why I was asking. Since j.u.List uses , I think it would make sense use here as well. > On Tue, Oct 12, 2010 at 6:21 PM, sebb wrote: >> CursorableLinkedList is based on the type T, and removeFirst() returns >> T, yet getFirst() returns Object. >> >> Also, toArray() returns Object[] or E[]. >> >> Not sure I follow why there is this mixture? >> >> --------------------------------------------------------------------- >> 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 > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org