HTML5 Canvas
Written by: Simon Sarris
Featured Refcardz: Top Refcardz:
  1. Apache Hadoop
  2. Web Driver
  3. MVVM
  4. REST
  5. ADO.NET
  1. HTML5
  2. Ajax
  3. jQuery Selectors
  4. CSS Part 1
  5. Git

Link Details

Link 103392 thumbnail
User 107114 avatar

By daniel
via michid.wordpress.com
Published: Aug 14 2008 / 03:43

Recently I read this rather fascinating post about a Type-safe Builder Pattern in Scala. When Heinz Kabutz mentioned the builder pattern in his latest issues of the The Java Specialists’ Newsletter I decided to try to come up with a type safe version for Java.
  • 9
  • 0
  • 1225
  • 2

Comments

Add your comment
User 232567 avatar

jdave replied ago:

0 votes Vote down Vote up Reply

Also given good coverage in Joshua Bloch's "Effective Java". A nice tool.

User 179375 avatar

Ricky Clarkson replied ago:

0 votes Vote down Vote up Reply

Except Josh Bloch's version isn't typesafe, as in you cannot statically have it ensure that all parameters have been set.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (9)



Voters Against This Link (0)