Interface Factory<R,​A>

    • Method Detail

      • getInstance

        R getInstance​(A obj)
        Returns an instance of R. This is a basic factory interface that is meant to be extended. Sub-interfaces declare types for A (the getInstance argument), and R (the type returned by getInstance).
        Parameters:
        obj - Optional object to be used in R's construction, or to be used as a selector key
        Returns:
        An instance of R