fluent API
Emulating "self types" using Java Generics to simplify fluent API implementation
Submitted by Ansgar.Konermann on November 18, 2010 - 00:56The Java programming language does not support the notion of "self types", that is "type of this". When implementing fluent APIs, this lack of support can lead to significant duplication of boilerplate code. Taking FEST Assertions as an example, this article shows how "self types" can be emulated in Java using Generics.

Recent comments
12 weeks 2 days ago
34 weeks 5 days ago
37 weeks 2 days ago
48 weeks 2 days ago
48 weeks 2 days ago
48 weeks 6 days ago
49 weeks 2 days ago
1 year 12 weeks ago
1 year 12 weeks ago
1 year 13 weeks ago