Programming Concepts

Fluent API

This is when the api just flows instead of using setter methods, etc. See: http://www.martinfowler.com/bliki/FluentInterface.html

   private void makeFluent(Customer customer) {
        customer.newOrder()
                .with(6, "TAL")
                .with(5, "HPK").skippable()
                .with(3, "LGV")
                .priorityRush();
    }
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License