| Modifier and Type | Method and Description |
|---|---|
Droplet |
build()
Builds a new
Droplet. |
Droplet.Builder |
from(Droplet instance)
Fill a builder with attribute values from the provided
Droplet instance. |
Droplet.Builder |
href(String href)
Initializes the value for the
href attribute. |
Droplet.Builder |
id(String id)
Initializes the value for the
id attribute. |
public final Droplet.Builder from(Droplet instance)
Droplet 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 Droplet.Builder href(String href)
href attribute.href - The value for href (can be null)this builder for use in a chained invocationpublic final Droplet.Builder id(String id)
id attribute.id - The value for idthis builder for use in a chained invocationpublic Droplet build()
Droplet.IllegalStateException - if any required attributes are missingCopyright © 2020. All rights reserved.