The main advantage of this style of fluent interface lies in its adaptability.
这种连贯接口的主要优势在于其适应性。
As an alternative to filter queries, Morphia offers a fluent interface for building queries.
作为筛选查询的替代,Morphia为构建查询提供了更好的接口。
A compact, intuitive, and readable fluent interface that simplifies creation and maintenance of functional GUI tests.
有一个紧凑、直观、可读的连贯接口,能简化功能GUI测试的创建和维护。
The site's blog is already having some posts like A fluent interface to NHibernate - Part 1, and being a place for NHibernate related announcements.
该站点的博客上已经有了一些发贴,如一个NHibernate的流畅接口之第一章,它也是NHibernate相关公告的发布场所。
To resolve this problem, we converted our Car class into a fluent interface, so that the code from Listing 3 became the fluent interface shown in Listing 4.
为了解决该问题,我们将car类转换为一个连贯接口,因而清单3中的代码变为清单4中的连贯接口。
A common DSL pattern identified in Fowler's book is called fluent interface, which he defines as behavior capable of relaying or maintaining the instruction context for a series of method calls.
Fowler的书中确定的一个公共dsl模式叫作连贯接口,他将其定义为能够为一系列方法调用中转或维护指令上下文的行为。
In addition, users can customise what now seems to be called the Microsoft Office Fluent user interface.
此外,用户还可以自定义现在被称为MicrosoftOfficeFluent的用户界面。
The finishing problem can arise any time you mix fluent-interface classes.
终了问题在您组合连贯接口类的任何时候都有可能出现。
This makes the last line of the at , from , and to methods (the return of this) the fluent-interface calls in this class.
这使at 、from和to (this方法返回值)方法的最后一行成为该类中的流畅接口调用。
The Appointment class containing most of the fluent-interface methods appears in Listing 2.
Appointment类包含清单2中出现的大部分连贯接口方法。
The error occurs because I'm trying to call the toString() method on the appointment instance before the rest of the fluent-interface setter methods are called.
出现错误的原因在于,我试图在连贯接口setter方法被调用之前调用appointment实例上的toString()方法。
Thus far, I've shown two of the three context-passing techniques for fluent-interface DSLs.
目前为止,我展示了连贯接口dsls三种上下文传递方法中的两种。
How can I build an interface hierarchy for my fluent API?
我如何为我流利的API建立一个接口?
How can I build an interface hierarchy for my fluent API?
我如何为我流利的API建立一个接口?
应用推荐