code_junkie

What's the term for this? [found, fluent interface]

Nov 11th, 2011
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. object.method1().method2().method3()
  2.  
  3. object.method1().method2().method3()
  4.  
  5. private void makeFluent(Customer customer) {
  6. customer.newOrder()
  7. .with(6, "TAL")
  8. .with(5, "HPK").skippable()
  9. .with(3, "LGV")
  10. .priorityRush();
  11. }
Add Comment
Please, Sign In to add comment