users@jsr311.java.net

static Variant.newListBuilder() ?

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

Hi,

is it useful to safe some code and allow
List<Variant> variants =
Variant.newListBuilder().mediaTypes(...).languages(...).build(); ?

Now the deveolper must call
List<Variant> variants =
VariantListBuilder.newInstance().mediaTypes(...).languages(...).build();

This proposal corresponds to Response, where you also don't need to
directly call the ResponseBilder. The newInstance() call doesn't look
nice in application code IMO.
And it saves some chars of code and an import statement :-)

best regards
   Stephan