Annotation Interface Method.Chain

Enclosing class:
Method

@Retention(RUNTIME) @Target(METHOD) public static @interface Method.Chain
Matches calls with the given name in the fluent chain that produced the value, including the static factory at its root. Results are shaped the same way as Method.Calls.
// Color.builder().red(255).green(128)
@Method.Chain("red")
@Argument.Index(0)
Integer red();
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The name of the calls to match in the chain.
  • Element Details

    • value

      String value
      The name of the calls to match in the chain.
      Returns:
      the method name