| Modifier and Type | Method and Description |
|---|---|
Link |
build()
Builds a new
Link. |
Link.Builder |
from(Link instance)
Fill a builder with attribute values from the provided
Link instance. |
Link.Builder |
href(String href)
Initializes the value for the
href attribute. |
Link.Builder |
method(String method)
Initializes the value for the
method attribute. |
public final Link.Builder from(Link instance)
Link instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final Link.Builder href(String href)
href attribute.href - The value for hrefthis builder for use in a chained invocationpublic final Link.Builder method(String method)
method attribute.method - The value for method (can be null)this builder for use in a chained invocationpublic Link build()
Link.IllegalStateException - if any required attributes are missingCopyright © 2020. All rights reserved.