Class VulkanViewportDimensions.Builder
java.lang.Object
com.io7m.jcoronado.api.VulkanViewportDimensions.Builder
- Enclosing class:
VulkanViewportDimensions
Builds instances of type
VulkanViewportDimensions.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newVulkanViewportDimensions.from(VulkanViewportDimensionsType instance) Fill a builder with attribute values from the providedVulkanViewportDimensionsTypeinstance.setMaximumX(int maximumX) Initializes the value for themaximumXattribute.setMaximumY(int maximumY) Initializes the value for themaximumYattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedVulkanViewportDimensionsTypeinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setMaximumX
Initializes the value for themaximumXattribute.- Parameters:
maximumX- The value for maximumX- Returns:
thisbuilder for use in a chained invocation
-
setMaximumY
Initializes the value for themaximumYattribute.- Parameters:
maximumY- The value for maximumY- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newVulkanViewportDimensions.- Returns:
- An immutable instance of VulkanViewportDimensions
- Throws:
IllegalStateException- if any required attributes are missing
-