public static class Resolution.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
Resolution |
build()
Builds a new
Resolution. |
Resolution.Builder |
from(Resolution instance)
Fill a builder with attribute values from the provided
Resolution instance. |
Resolution.Builder |
height(int height)
Initializes the value for the
height attribute. |
Resolution.Builder |
width(int width)
Initializes the value for the
width attribute. |
public final Resolution.Builder from(Resolution instance)
Resolution 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 Resolution.Builder width(int width)
width attribute.width - The value for widththis builder for use in a chained invocationpublic final Resolution.Builder height(int height)
height attribute.height - The value for heightthis builder for use in a chained invocationpublic Resolution build()
Resolution.java.lang.IllegalStateException - if any required attributes are missing