Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.infinispan.commons.configuration;

This interface simplifies the task of writing fluent builders which need to inherit from other builders (abstract or concrete). It overcomes Java's limitation of not being able to return an instance of a class narrowed to the class itself. It should be used by all Builder classes which require inheritance.

Tristan Tarrant
public interface Self<S extends Self<S>> {
   S self();
New to GrepCode? Check out our FAQ X