users@jsr311.java.net

Re: static Variant.newListBuilder() ?

From: Stephan Koops <Stephan.Koops_at_web.de>
Date: Thu, 26 Jun 2008 16:22:12 +0200

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