On Jun 26, 2008, at 1:37 PM, Stephan Koops wrote:
>
> 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()
>
I just made the static newInstance method public instead. I can't see
much use for this so I don't see a need for a method on Variant as well.
Marc.
>
> 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.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jsr311.dev.java.net
> For additional commands, e-mail: users-help_at_jsr311.dev.java.net
>
---
Marc Hadley <marc.hadley at sun.com>
CTO Office, Sun Microsystems.