Quantcast
Viewing latest article 6
Browse Latest Browse All 11

Emulating "self types" using Java Generics to simplify fluent API implementation

The 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.

read more


Viewing latest article 6
Browse Latest Browse All 11

Trending Articles