| Modifier and Type | Method and Description |
|---|---|
Lifecycle |
build()
Builds a new
Lifecycle. |
Lifecycle.Builder |
data(LifecycleData data)
Initializes the value for the
data attribute. |
Lifecycle.Builder |
from(Lifecycle instance)
Fill a builder with attribute values from the provided
Lifecycle instance. |
Lifecycle.Builder |
type(LifecycleType type)
Initializes the value for the
type attribute. |
public final Lifecycle.Builder from(Lifecycle instance)
Lifecycle 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 Lifecycle.Builder data(LifecycleData data)
data attribute.data - The value for datathis builder for use in a chained invocationpublic final Lifecycle.Builder type(LifecycleType type)
type attribute.type - The value for typethis builder for use in a chained invocationpublic Lifecycle build()
Lifecycle.IllegalStateException - if any required attributes are missingCopyright © 2020. All rights reserved.