public RouteMethod attributes(Map<String, Object> attributes) {
    if (attributes != null) {
      if (this.attributes == null) {
        this.attributes = new LinkedHashMap<>();
      }
      this.attributes.putAll(attributes);
    }
    return this;
  }
public RouteMethod attributes(Map<String, Object> attributes) {
    if (attributes != null) {
      if (this.attributes == null) {
        this.attributes = new LinkedHashMap<>();
      }
      this.attributes.putAll(attributes);
    }
    return this;
  }
public RouteMethod attributes ( Map < String , Object > attributes ) { if ( attributes != null ) { if ( this . attributes == null ) { this . attributes = new LinkedHashMap <> ( ) ; } this . attributes . putAll ( attributes ) ; } return this ; }
Set route attributes.

@param attributes Attributes.
@return This method.
Set route attributes .