logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <garydgreg...@gmail.com>
Subject Re: List vs. Set
Date Tue, 12 Jan 2016 04:20:41 GMT
List<String> getPluginPackages();

G

On Mon, Jan 11, 2016 at 8:12 PM, Paul Benedict <pbenedict@apache.org> 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" <garydgregory@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> wrote:
>>
>>> Even a Collection works well for this.
>>>
>>>
>>> On Monday, 11 January 2016, Gary 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.  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 <garydgregory@gmail.com>
>>>>> 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
>>>>> <http://www.manning.com/bauer3/>
>>>>> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
>>>>> Spring Batch in Action <http://www.manning.com/templier/>
>>>>> 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
>>>> <http://www.manning.com/bauer3/>
>>>> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
>>>> Spring Batch in Action <http://www.manning.com/templier/>
>>>> Blog: http://garygregory.wordpress.com
>>>> Home: http://garygregory.com/
>>>> Tweet! http://twitter.com/GaryGregory
>>>>
>>>
>>>
>>> --
>>> Matt Sicker <boards@gmail.com>
>>>
>>
>>
>>
>> --
>> E-Mail: garydgregory@gmail.com | ggregory@apache.org
>> Java Persistence with Hibernate, Second Edition
>> <http://www.manning.com/bauer3/>
>> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
>> Spring Batch in Action <http://www.manning.com/templier/>
>> 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
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Mime
View raw message