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 )
        .with( 6, "TAL" )
        .with( 5, "HPK" ).skippable()
        .with( 3, "LGV" )

This page is posted
on the web at:


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

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.

Your face IP:[]
You are visitor number