TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Curry Saves Java?

1 点作者 code-dog超过 13 年前

1 comment

rickette超过 13 年前
This programming style is commonly known as applying a "fluent interface" or fluent api. See Wikipedia <a href="http://en.wikipedia.org/wiki/Fluent_interface" rel="nofollow">http://en.wikipedia.org/wiki/Fluent_interface</a>.<p>It is already heavily used by numerous Java frameworks like Hibernate (Criteria API, now part of JPA2), Apache Camel, and various mocking libraries like EasyMock and Mockito.<p>Concerning the SQL example in the blog post, there are quite a few Java libraries available that provide a fluent interface for building SQL. For an overview see <a href="http://stackoverflow.com/a/6565369" rel="nofollow">http://stackoverflow.com/a/6565369</a>.
评论 #3310685 未加载