Return-Path: X-Original-To: apmail-logging-log4j-dev-archive@www.apache.org Delivered-To: apmail-logging-log4j-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 0460D18851 for ; Tue, 12 Jan 2016 04:21:03 +0000 (UTC) Received: (qmail 85620 invoked by uid 500); 12 Jan 2016 04:21:02 -0000 Delivered-To: apmail-logging-log4j-dev-archive@logging.apache.org Received: (qmail 85567 invoked by uid 500); 12 Jan 2016 04:21:02 -0000 Mailing-List: contact log4j-dev-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Developers List" Reply-To: "Log4J Developers List" Delivered-To: mailing list log4j-dev@logging.apache.org Received: (qmail 85557 invoked by uid 99); 12 Jan 2016 04:21:02 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jan 2016 04:21:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 5E0BE180456 for ; Tue, 12 Jan 2016 04:21:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.901 X-Spam-Level: ** X-Spam-Status: No, score=2.901 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id kBw8A1lx2cJO for ; Tue, 12 Jan 2016 04:20:50 +0000 (UTC) Received: from mail-lf0-f49.google.com (mail-lf0-f49.google.com [209.85.215.49]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id A1C0743E72 for ; Tue, 12 Jan 2016 04:20:48 +0000 (UTC) Received: by mail-lf0-f49.google.com with SMTP id m198so79256370lfm.0 for ; Mon, 11 Jan 2016 20:20:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=viYLlHW2T7cpZxRnJK1GjSqUZoYqrFMXq9xULfFv0Eg=; b=EEOvJIrUDr/n40ut+E52HnL/UKwmeVvI8uM0NAYdl/PlxCcveGb07CwiAdHF2RDlyC oE3uaXkUiVMmskH2ndC3wv2ctfcoBPkalonkJHaaKkX7ez3phYay2crhRwA8x51L8P4o qSi6hO9G/1RC9m1itIC8J9XXJKneRl2JWvjr+oihEtlSFKwL1vhxpNN1i87EX47QVMTk sbEMCzVnKSRk/47YTU8ZbZb6c4rzfFP8A5CG9g80TcPhkx8QYRjsFp1ntQL9KsDYs6tH wWWYnDb6nUIFAtPLIEx+Mx6CB0ybwGatU9CS1kjdxNaHNfpH7RLNV7TaYISs6w1rEsnH vp/w== MIME-Version: 1.0 X-Received: by 10.25.24.85 with SMTP id o82mr44594533lfi.144.1452572441594; Mon, 11 Jan 2016 20:20:41 -0800 (PST) Received: by 10.112.200.70 with HTTP; Mon, 11 Jan 2016 20:20:41 -0800 (PST) In-Reply-To: References: <026B465F-9917-4DC6-80B6-D6FC87C43672@dslextreme.com> Date: Mon, 11 Jan 2016 20:20:41 -0800 Message-ID: Subject: Re: List vs. Set From: Gary Gregory To: Log4J Developers List Content-Type: multipart/alternative; boundary=001a1140552664587a05291b6066 --001a1140552664587a05291b6066 Content-Type: text/plain; charset=UTF-8 List getPluginPackages(); G On Mon, Jan 11, 2016 at 8:12 PM, Paul Benedict wrote: > Thu can only use Set if you have a notion of equality and comparison. Do > you for this collection? > On Jan 11, 2016 9:48 PM, "Gary Gregory" wrote: > >> Well, not really, I'd like to express whether the collection allows for >> duplicates or not, if not, use a set. >> >> Gary >> >> On Mon, Jan 11, 2016 at 7:08 PM, Matt Sicker wrote: >> >>> Even a Collection works well for this. >>> >>> >>> On Monday, 11 January 2016, Gary Gregory wrote: >>> >>>> On Mon, Jan 11, 2016 at 5:19 PM, Ralph Goers < >>>> ralph.goers@dslextreme.com> wrote: >>>> >>>>> It is returning a List already. Does it really matter much? >>>>> >>>> >>>> It is not indeed critical. It's just a finer point of declaring the >>>> intention of the data model, either duplicates are allowed and expected, or >>>> not. >>>> >>>> Gary >>>> >>>>> >>>>> Ralph >>>>> >>>>> On Jan 11, 2016, at 6:04 PM, Gary Gregory >>>>> wrote: >>>>> >>>>> Should APIs like: >>>>> >>>>> org.apache.logging.log4j.core.config.Configuration.getPluginPackages() >>>>> >>>>> really return a List instead of a Set? >>>>> >>>>> Gary >>>>> >>>>> -- >>>>> E-Mail: garydgregory@gmail.com | ggregory@apache.org >>>>> Java Persistence with Hibernate, Second Edition >>>>> >>>>> JUnit in Action, Second Edition >>>>> Spring Batch in Action >>>>> Blog: http://garygregory.wordpress.com >>>>> Home: http://garygregory.com/ >>>>> Tweet! http://twitter.com/GaryGregory >>>>> >>>>> >>>>> >>>> >>>> >>>> -- >>>> E-Mail: garydgregory@gmail.com | ggregory@apache.org >>>> Java Persistence with Hibernate, Second Edition >>>> >>>> JUnit in Action, Second Edition >>>> Spring Batch in Action >>>> Blog: http://garygregory.wordpress.com >>>> Home: http://garygregory.com/ >>>> Tweet! http://twitter.com/GaryGregory >>>> >>> >>> >>> -- >>> Matt Sicker >>> >> >> >> >> -- >> E-Mail: garydgregory@gmail.com | ggregory@apache.org >> Java Persistence with Hibernate, Second Edition >> >> JUnit in Action, Second Edition >> Spring Batch in Action >> Blog: http://garygregory.wordpress.com >> Home: http://garygregory.com/ >> Tweet! http://twitter.com/GaryGregory >> > -- E-Mail: garydgregory@gmail.com | ggregory@apache.org Java Persistence with Hibernate, Second Edition JUnit in Action, Second Edition Spring Batch in Action Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory --001a1140552664587a05291b6066 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
List<String> getPluginPackages();

=
G

On Mon, Jan 11, 2016 at 8:12 PM, Paul Benedict <pbenedict@apache.org> wrote:

Thu c= an only use Set if you have a notion of equality and comparison. Do you for= this collection?

On Jan 11, 2016 9:48 PM, "Gary Gregory"= ; <garydgreg= ory@gmail.com> wrote:
Well, not really, I'd like to express whether= the collection allows for duplicates or not, if not, use a set.

Gary

On Mon, Jan 11, 2016 at 7:08 PM, Matt Sicker <= boards@gmail.com&= gt; wrote:
Even a Collection works= well for this.


On Monday, 11 January 2016, G= ary Gregory <garydgregory@gmail.com> wrote:
On Mon= , Jan 11, 2016 at 5:19 PM, Ralph Goers <ralph.goers= @dslextreme.com> wrote:
It is returning a List already.=C2=A0= Does it really matter much?

It= is not indeed critical. It's just a finer point of declaring the inten= tion of the data model, either duplicates are allowed and expected, or not.=

Gary=C2=A0

Ralph

On Jan 11, 2016, at 6:04 PM, Gary Gregory <garydgregory@gmai= l.com> wrote:

Should APIs like:
<= br>
org.apache.logging.log4j.core.config.Configuration.getPluginP= ackages()





--


--
Matt = Sicker <boards@gma= il.com>



--



--
= --001a1140552664587a05291b6066--