{"action":"created","comment":{"url":"https://api.github.com/repos/iluwatar/java-design-patterns/pulls/comments/38916501","id":38916501,"diff_hunk":"@@ -0,0 +1,24 @@\n+---\n+layout: pattern\n+title: Fluent Interface\n+folder: fluentinterface\n+permalink: /patterns/fluentinterface/\n+categories: Architectural\n+tags: Java\n+---\n+\n+**Intent:** A fluent interface provides an easy-readable, flowing interface, that often mimics a domain specific language. This is especially useful when the users of your API benefit from code, that can nearly be read as human language.","path":"fluentinterface/index.md","position":10,"original_position":10,"commit_id":"6096f3ea9f2c84e75a00330afab27a3007b64520","original_commit_id":"6096f3ea9f2c84e75a00330afab27a3007b64520","user":{"login":"hannespernpeintner","id":1679437,"avatar_url":"https://avatars.githubusercontent.com/u/1679437?v=3","gravatar_id":"","url":"https://api.github.com/users/hannespernpeintner","html_url":"https://github.com/hannespernpeintner","followers_url":"https://api.github.com/users/hannespernpeintner/followers","following_url":"https://api.github.com/users/hannespernpeintner/following{/other_user}","gists_url":"https://api.github.com/users/hannespernpeintner/gists{/gist_id}","starred_url":"https://api.github.com/users/hannespernpeintner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hannespernpeintner/subscriptions","organizations_url":"https://api.github.com/users/hannespernpeintner/orgs","repos_url":"https://api.github.com/users/hannespernpeintner/repos","events_url":"https://api.github.com/users/hannespernpeintner/events{/privacy}","received_events_url":"https://api.github.com/users/hannespernpeintner/received_events","type":"User","site_admin":false},"body":"Of course, if one has a better idea how to express it - english is not my native language ;)\r\n\r\nI wanted to express that this kind of interface is most useful for people that really want to have an easy API, because they're not interested further in the topic of your program, but want to utilize it as quickly as possible. Or when the fluent interface design would really be much better then a traditional approach.","created_at":"2015-09-08T11:54:26Z","updated_at":"2015-09-08T11:54:26Z","html_url":"https://github.com/iluwatar/java-design-patterns/pull/225#discussion_r38916501","pull_request_url":"https://api.github.com/repos/iluwatar/java-design-patterns/pulls/225","_links":{"self":{"href":"https://api.github.com/repos/iluwatar/java-design-patterns/pulls/comments/38916501"},"html":{"href":"https://github.com/iluwatar/java-design-patterns/pull/225#discussion_r38916501"},"pull_request":{"href":"https://api.github.com/repos/iluwatar/java-design-patterns/pulls/225"}}},"pull_request":{"url":"https://api.github.com/repos/iluwatar/java-design-patterns/pulls/225","id":43034764,"html_url":"https://github.com/iluwatar/java-design-patterns/pull/225","diff_url":"https://github.com/iluwatar/java-design-patterns/pull/225.diff","patch_url":"https://github.com/iluwatar/java-design-patterns/pull/225.patch","issue_url":"https://api.github.com/repos/iluwatar/java-design-patterns/issues/225","number":225,"state":"open","locked":false,"title":"#184 Fluent Interface pattern","user":{"login":"hannespernpeintner","id":1679437,"avatar_url":"https://avatars.githubusercontent.com/u/1679437?v=3","gravatar_id":"","url":"https://api.github.com/users/hannespernpeintner","html_url":"https://github.com/hannespernpeintner","followers_url":"https://api.github.com/users/hannespernpeintner/followers","following_url":"https://api.github.com/users/hannespernpeintner/following{/other_user}","gists_url":"https://api.github.com/users/hannespernpeintner/gists{/gist_id}","starred_url":"https://api.github.com/users/hannespernpeintner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hannespernpeintner/subscriptions","organizations_url":"https://api.github.com/users/hannespernpeintner/orgs","repos_url":"https://api.github.com/users/hannespernpeintner/repos","events_url":"https://api.github.com/users/hannespernpeintner/events{/privacy}","received_events_url":"https://api.github.com/users/hannespernpeintner/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-21T12:57:02Z","updated_at":"2015-09-08T11:54:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"50f6229a1b39d4b4804443dc54f2d3a1d269f360","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/iluwatar/java-design-patterns/pulls/225/commits","review_comments_url":"https://api.github.com/repos/iluwatar/java-design-patterns/pulls/225/comments","review_comment_url":"https://api.github.com/repos/iluwatar/java-design-patterns/pulls/comments{/number}","comments_url":"https://api.github.com/repos/iluwatar/java-design-patterns/issues/225/comments","statuses_url":"https://api.github.com/repos/iluwatar/java-design-patterns/statuses/6096f3ea9f2c84e75a00330afab27a3007b64520","head":{"label":"hannespernpeintner:fluentinterface","ref":"fluentinterface","sha":"6096f3ea9f2c84e75a00330afab27a3007b64520","user":{"login":"hannespernpeintner","id":1679437,"avatar_url":"https://avatars.githubusercontent.com/u/1679437?v=3","gravatar_id":"","url":"https://api.github.com/users/hannespernpeintner","html_url":"https://github.com/hannespernpeintner","followers_url":"https://api.github.com/users/hannespernpeintner/followers","following_url":"https://api.github.com/users/hannespernpeintner/following{/other_user}","gists_url":"https://api.github.com/users/hannespernpeintner/gists{/gist_id}","starred_url":"https://api.github.com/users/hannespernpeintner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hannespernpeintner/subscriptions","organizations_url":"https://api.github.com/users/hannespernpeintner/orgs","repos_url":"https://api.github.com/users/hannespernpeintner/repos","events_url":"https://api.github.com/users/hannespernpeintner/events{/privacy}","received_events_url":"https://api.github.com/users/hannespernpeintner/received_events","type":"User","site_admin":false},"repo":{"id":40676579,"name":"java-design-patterns","full_name":"hannespernpeintner/java-design-patterns","owner":{"login":"hannespernpeintner","id":1679437,"avatar_url":"https://avatars.githubusercontent.com/u/1679437?v=3","gravatar_id":"","url":"https://api.github.com/users/hannespernpeintner","html_url":"https://github.com/hannespernpeintner","followers_url":"https://api.github.com/users/hannespernpeintner/followers","following_url":"https://api.github.com/users/hannespernpeintner/following{/other_user}","gists_url":"https://api.github.com/users/hannespernpeintner/gists{/gist_id}","starred_url":"https://api.github.com/users/hannespernpeintner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hannespernpeintner/subscriptions","organizations_url":"https://api.github.com/users/hannespernpeintner/orgs","repos_url":"https://api.github.com/users/hannespernpeintner/repos","events_url":"https://api.github.com/users/hannespernpeintner/events{/privacy}","received_events_url":"https://api.github.com/users/hannespernpeintner/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hannespernpeintner/java-design-patterns","description":"Design pattern samples implemented in Java","fork":true,"url":"https://api.github.com/repos/hannespernpeintner/java-design-patterns","forks_url":"https://api.github.com/repos/hannespernpeintner/java-design-patterns/forks","keys_url":"https://api.github.com/repos/hannespernpeintner/java-design-patterns/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hannespernpeintner/java-design-patterns/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hannespernpeintner/java-design-patterns/teams","hooks_url":"https://api.github.com/repos/hannespernpeintner/java-design-patterns/hooks","issue_events_url":"https://api.github.com/repos/hannespernpeintner/java-design-patterns/issues/events{/number}","events_url":"https://api.github.com/repos/hannespernpeintner/java-design-patterns/events","assignees_url":"https://api.github.com/repos/hannespernpeintner/java-design-patterns/assignees{/user}","branches_url":"https://api.github.com/repos/hannespernpeintner/java-design-patterns/branches{/branch}","tags_url":"https://api.github.com/repos/hannespernpeintner/java-design-patterns/tags","blobs_url":"https://api.github.com/repos/hannespernpeintner/java-design-patterns/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hannespernpeintner/java-design-patterns/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hannespernpeintner/java-design-patterns/git/refs{/sha}","trees_url":"https://api.github.com/repos/hannespernpeintner/java-design-patterns/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hannespernpeintner/java-design-patterns/statuses/{sha}","languages_url":"https://api.github.com/repos/hannespernpeintner/java-design-patterns/languages","stargazers_url":"https://api.github.com/repos/hannespernpeintner/java-design-patterns/stargazers","contributors_url":"https://api.github.com/repos/hannespernpeintner/java-design-patterns/contributors","subscribers_url":"https://api.github.com/repos/hannespernpeintner/java-design-patterns/subscribers","subscription_url":"https://api.github.com/repos/hannespernpeintner/java-design-patterns/subscription","commits_url":"https://api.github.com/repos/hannespernpeintner/java-design-patterns/commits{/sha}","git_commits_url":"https://api.github.com/repos/hannespernpeintner/java-design-patterns/git/commits{/sha}","comments_url":"https://api.github.com/repos/hannespernpeintner/java-design-patterns/comments{/number}","issue_comment_url":"https://api.github.com/repos/hannespernpeintner/java-design-patterns/issues/comments{/number}","contents_url":"https://api.github.com/repos/hannespernpeintner/java-design-patterns/contents/{+path}","compare_url":"https://api.github.com/repos/hannespernpeintner/java-design-patterns/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hannespernpeintner/java-design-patterns/merges","archive_url":"https://api.github.com/repos/hannespernpeintner/java-design-patterns/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hannespernpeintner/java-design-patterns/downloads","issues_url":"https://api.github.com/repos/hannespernpeintner/java-design-patterns/issues{/number}","pulls_url":"https://api.github.com/repos/hannespernpeintner/java-design-patterns/pulls{/number}","milestones_url":"https://api.github.com/repos/hannespernpeintner/java-design-patterns/milestones{/number}","notifications_url":"https://api.github.com/repos/hannespernpeintner/java-design-patterns/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hannespernpeintner/java-design-patterns/labels{/name}","releases_url":"https://api.github.com/repos/hannespernpeintner/java-design-patterns/releases{/id}","created_at":"2015-08-13T19:00:45Z","updated_at":"2015-08-13T19:00:47Z","pushed_at":"2015-09-07T15:00:00Z","git_url":"git://github.com/hannespernpeintner/java-design-patterns.git","ssh_url":"git@github.com:hannespernpeintner/java-design-patterns.git","clone_url":"https://github.com/hannespernpeintner/java-design-patterns.git","svn_url":"https://github.com/hannespernpeintner/java-design-patterns","homepage":"","size":6459,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"iluwatar:master","ref":"master","sha":"9eb64bc0e5b1040ed6d2e81fdde51fb918c751b3","user":{"login":"iluwatar","id":582346,"avatar_url":"https://avatars.githubusercontent.com/u/582346?v=3","gravatar_id":"","url":"https://api.github.com/users/iluwatar","html_url":"https://github.com/iluwatar","followers_url":"https://api.github.com/users/iluwatar/followers","following_url":"https://api.github.com/users/iluwatar/following{/other_user}","gists_url":"https://api.github.com/users/iluwatar/gists{/gist_id}","starred_url":"https://api.github.com/users/iluwatar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iluwatar/subscriptions","organizations_url":"https://api.github.com/users/iluwatar/orgs","repos_url":"https://api.github.com/users/iluwatar/repos","events_url":"https://api.github.com/users/iluwatar/events{/privacy}","received_events_url":"https://api.github.com/users/iluwatar/received_events","type":"User","site_admin":false},"repo":{"id":22790488,"name":"java-design-patterns","full_name":"iluwatar/java-design-patterns","owner":{"login":"iluwatar","id":582346,"avatar_url":"https://avatars.githubusercontent.com/u/582346?v=3","gravatar_id":"","url":"https://api.github.com/users/iluwatar","html_url":"https://github.com/iluwatar","followers_url":"https://api.github.com/users/iluwatar/followers","following_url":"https://api.github.com/users/iluwatar/following{/other_user}","gists_url":"https://api.github.com/users/iluwatar/gists{/gist_id}","starred_url":"https://api.github.com/users/iluwatar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iluwatar/subscriptions","organizations_url":"https://api.github.com/users/iluwatar/orgs","repos_url":"https://api.github.com/users/iluwatar/repos","events_url":"https://api.github.com/users/iluwatar/events{/privacy}","received_events_url":"https://api.github.com/users/iluwatar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/iluwatar/java-design-patterns","description":"Design pattern samples implemented in Java","fork":false,"url":"https://api.github.com/repos/iluwatar/java-design-patterns","forks_url":"https://api.github.com/repos/iluwatar/java-design-patterns/forks","keys_url":"https://api.github.com/repos/iluwatar/java-design-patterns/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iluwatar/java-design-patterns/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iluwatar/java-design-patterns/teams","hooks_url":"https://api.github.com/repos/iluwatar/java-design-patterns/hooks","issue_events_url":"https://api.github.com/repos/iluwatar/java-design-patterns/issues/events{/number}","events_url":"https://api.github.com/repos/iluwatar/java-design-patterns/events","assignees_url":"https://api.github.com/repos/iluwatar/java-design-patterns/assignees{/user}","branches_url":"https://api.github.com/repos/iluwatar/java-design-patterns/branches{/branch}","tags_url":"https://api.github.com/repos/iluwatar/java-design-patterns/tags","blobs_url":"https://api.github.com/repos/iluwatar/java-design-patterns/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iluwatar/java-design-patterns/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iluwatar/java-design-patterns/git/refs{/sha}","trees_url":"https://api.github.com/repos/iluwatar/java-design-patterns/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iluwatar/java-design-patterns/statuses/{sha}","languages_url":"https://api.github.com/repos/iluwatar/java-design-patterns/languages","stargazers_url":"https://api.github.com/repos/iluwatar/java-design-patterns/stargazers","contributors_url":"https://api.github.com/repos/iluwatar/java-design-patterns/contributors","subscribers_url":"https://api.github.com/repos/iluwatar/java-design-patterns/subscribers","subscription_url":"https://api.github.com/repos/iluwatar/java-design-patterns/subscription","commits_url":"https://api.github.com/repos/iluwatar/java-design-patterns/commits{/sha}","git_commits_url":"https://api.github.com/repos/iluwatar/java-design-patterns/git/commits{/sha}","comments_url":"https://api.github.com/repos/iluwatar/java-design-patterns/comments{/number}","issue_comment_url":"https://api.github.com/repos/iluwatar/java-design-patterns/issues/comments{/number}","contents_url":"https://api.github.com/repos/iluwatar/java-design-patterns/contents/{+path}","compare_url":"https://api.github.com/repos/iluwatar/java-design-patterns/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iluwatar/java-design-patterns/merges","archive_url":"https://api.github.com/repos/iluwatar/java-design-patterns/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iluwatar/java-design-patterns/downloads","issues_url":"https://api.github.com/repos/iluwatar/java-design-patterns/issues{/number}","pulls_url":"https://api.github.com/repos/iluwatar/java-design-patterns/pulls{/number}","milestones_url":"https://api.github.com/repos/iluwatar/java-design-patterns/milestones{/number}","notifications_url":"https://api.github.com/repos/iluwatar/java-design-patterns/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iluwatar/java-design-patterns/labels{/name}","releases_url":"https://api.github.com/repos/iluwatar/java-design-patterns/releases{/id}","created_at":"2014-08-09T16:45:18Z","updated_at":"2015-09-08T10:20:29Z","pushed_at":"2015-09-08T07:29:14Z","git_url":"git://github.com/iluwatar/java-design-patterns.git","ssh_url":"git@github.com:iluwatar/java-design-patterns.git","clone_url":"https://github.com/iluwatar/java-design-patterns.git","svn_url":"https://github.com/iluwatar/java-design-patterns","homepage":"http://iluwatar.github.io/java-design-patterns/","size":9545,"stargazers_count":7540,"watchers_count":7540,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2306,"mirror_url":null,"open_issues_count":127,"forks":2306,"open_issues":127,"watchers":7540,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/iluwatar/java-design-patterns/pulls/225"},"html":{"href":"https://github.com/iluwatar/java-design-patterns/pull/225"},"issue":{"href":"https://api.github.com/repos/iluwatar/java-design-patterns/issues/225"},"comments":{"href":"https://api.github.com/repos/iluwatar/java-design-patterns/issues/225/comments"},"review_comments":{"href":"https://api.github.com/repos/iluwatar/java-design-patterns/pulls/225/comments"},"review_comment":{"href":"https://api.github.com/repos/iluwatar/java-design-patterns/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/iluwatar/java-design-patterns/pulls/225/commits"},"statuses":{"href":"https://api.github.com/repos/iluwatar/java-design-patterns/statuses/6096f3ea9f2c84e75a00330afab27a3007b64520"}}}}