报告返回 this 的方法。

虽然此类返回是有效的,但很少有必要,并且通常表明该方法旨在被用作类似方法调用链的一部分(例如,buffer.append("foo").append( "bar").append("baz"))。 许多编码标准不赞成此类链。

示例:


  public Builder append(String str) {
    // [...]
    return this;
  }