users@jsr311.java.net

Re: static Variant.newListBuilder() ?

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Thu, 26 Jun 2008 10:48:42 -0400

I prefer plain build(). Its a method on a ListBuilder so buildList
seems unnecessary to me.

Marc.

On Jun 26, 2008, at 10:22 AM, Stephan Koops wrote:

> Hi Marc,
>> Yes. We can even avoid the newListBuilder if we add static
>> mediaTypes, languages, ... methods. I'll do that.
> Sorry, that I'm scrupulous. Is it useful to rename the method
> VariantListBuilder.build() to buildList() ?
>
> I think
>
> List<Variant> variants =
> variant.mediaTypes(...).langauges(...).buildList();
>
> is better to understand, if you read it, as
>
> List<Variant> variants =
> variant.mediaTypes(...).langauges(...).build();
>
> best regards
> Stephan
>
> ---------------------------------------------------------------------
> 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.