Skip to content

Fill the properties of a component in a fluent manner #24

@kKdH

Description

@kKdH
public interface MyComponent {
   void setText(String text); // optional if with-operation is present
   MyComponent withText(String text); // optional if setter is present
   String getText();
   ...
}

MyComponent c = ...
c.withText("").withNumber(42).addTo(ref).withText("Hello World").withNumber(73).pushTo(ref);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions