Friday, August 5, 2016

Self Types With Java’s Generics

In some situations, particularly when implementing the builder pattern or creating other fluent APIs, methods return this. The method’s return type is likely to be the same as the class in which the method is defined–but sometimes that doesn’t cut it! If we want to inherit methods and their return type should be the inheriting […]

Continue reading %Self Types With Java’s Generics%


by Nicolai Parlog via SitePoint

No comments:

Post a Comment