users@jsr311.java.net

Re: static Variant.newListBuilder() ?

From: Stephan Koops <Stephan.Koops_at_web.de>
Date: Thu, 26 Jun 2008 19:37:59 +0200

Hi Marc,

another point: IMO it is useful to have the option to start with an
empty VariantListBuilder.
If a Variant List is build, the VariantListBuilder is reset to an empty
builder. I think it should be possible to directly create an empty
VariantListBuilder without
VariantListBuilder vlb = Varinat.mediaTypes(); or Varinat.languages();
or Varinat.encodings();
so let additional insert
Variant.newListBuilder()

best regards
   Stephan

Marc Hadley schrieb:
> On Jun 26, 2008, at 6:48 AM, Stephan Koops wrote:
>>
>> is it useful to safe some code and allow
>> List<Variant> variants =
>> Variant.newListBuilder().mediaTypes(...).languages(...).build(); ?
>>
> Yes. We can even avoid the newListBuilder if we add static mediaTypes,
> languages, ... methods. I'll do that.
>
> Marc.