Interface Self<S extends Self<S>>

  • public interface Self<S extends Self<S>>
    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
    • Method Detail

      • self

        S self()