fluent interface : Java Glossary

*0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ (all)

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();
   }

This page is posted
on the web at:

http://mindprod.com/jgloss/fluentinterface.html

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

J:\mindprod\jgloss\fluentinterface.html
Canadian Mind Products
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

IP:[65.110.21.43]
Your face IP:[3.138.175.10]
You are visitor number