ho jin cong
ho jin cong

Reputation: 31

What's the differences between fluent interface and method chaining?

The Question is As Same As the Title. :)

Upvotes: 3

Views: 333

Answers (1)

Ha.
Ha.

Reputation: 3454

  1. Fluent interface can have some requirements for methods chaining. For example, method chain can be required to end by .done().
  2. It is more general. You can use method chaining in the params: .namesIn(NameSet.name("John").and("Richard")).

Upvotes: 2

Related Questions