接口 ComponentBuilder.Joiner

  • 封闭类:
    ComponentBuilder

    public static interface ComponentBuilder.Joiner
    Functional interface to join additional components to a ComponentBuilder.
    • 方法详细资料

      • join

        ComponentBuilder join​(ComponentBuilder componentBuilder,
                              ComponentBuilder.FormatRetention retention)
        Joins additional components to the provided ComponentBuilder and then returns it to fulfill a chain pattern.

        Retention may be ignored and is to be understood as an optional recommendation to the Joiner and not as a guarantee to have a previous component in builder unmodified.

        参数:
        componentBuilder - to which to append additional components
        retention - the formatting to possibly retain
        返回:
        input componentBuilder for chaining