Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 67059 invoked from network); 13 Oct 2010 00:16:19 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Oct 2010 00:16:19 -0000 Received: (qmail 56950 invoked by uid 500); 13 Oct 2010 00:16:19 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 56808 invoked by uid 500); 13 Oct 2010 00:16:18 -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 56800 invoked by uid 99); 13 Oct 2010 00:16:18 -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:16:18 +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 paulus.benedictus@gmail.com designates 209.85.212.43 as permitted sender) Received: from [209.85.212.43] (HELO mail-vw0-f43.google.com) (209.85.212.43) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Oct 2010 00:16:11 +0000 Received: by vws18 with SMTP id 18so595464vws.30 for ; Tue, 12 Oct 2010 17:15:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=x+X2Do1P1VD2k559AD368Ai0dymsAWIIRIlBHEKeJjw=; b=Pidmz6k0NBR6WNcnregtQmXZxPXSWVdhBqAubTLvS3WDWVHSlcmL+b/Kb9Z3fanQQA 6AnM5ohXV0pxFedPCSVODhbibjJ8l5ncux/bHlSLUQfjH06RR5ljJUvLpl95z4flxFVE UjaJ+fWhfomLyMkT4XPY3hvdstS01Uk+76PbE= DomainKey-Signature: a=rsa-sha1; c=nofws; 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; b=jRyH745EbGWBjmwhTg1Z/GsGXZyQ97fkVhcb3ucY/jWhjw3e01xIVI+gjTdbCPjVJl y9LrRw7F7Uj5Brr7IBIgAS0R58vbqwwzsTXHH6q9cyOU1JWq+8Zkkg2+l1XS2j+iawyf a9SBYH0lcoQZXLjc4nrRUo9kkxADSTBWD7EcY= MIME-Version: 1.0 Received: by 10.220.192.137 with SMTP id dq9mr1677513vcb.86.1286928950163; Tue, 12 Oct 2010 17:15:50 -0700 (PDT) Sender: paulus.benedictus@gmail.com Received: by 10.220.191.75 with HTTP; Tue, 12 Oct 2010 17:15:50 -0700 (PDT) In-Reply-To: References: Date: Tue, 12 Oct 2010 19:15:50 -0500 X-Google-Sender-Auth: aRDZmlCRQTebiDpCqPjOB6WF3s8 Message-ID: Subject: Re: [pool] CursorableLinkedList - why does it use a mix of , Object and ? From: Paul Benedict To: Commons Developers List Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org The whole convention comes from java.util where there are "elements" of a collection. 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. 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