fluent interface : Java Glossary

fluent interface
A technique for handling a constructor with a great many parameters. You chain together setter methods that return the object. This gives the effect of keyword=value. The catch is, the constructor can’t ensure consistency
// typical use of a fluent style construction
private void makeFluent( Customer customer )
   {
   customer.newOrder()
        .with( 6, "TAL" )
        .with( 5, "HPK" ).skippable()
        .with( 3, "LGV" )
        .priorityRush();
   }

available on the web at:

http://mindprod.com/jgloss/fluentinterface.html
ClustrMaps is down

optional Replicator mirror
of mindprod.com
on local hard disk J:

J:\mindprod\jgloss\fluentinterface.html
logo
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy.
Blog
IP:[65.110.21.43]
Your face IP:[54.204.215.209]
You are visitor number 8,473.