Class VulkanLayerProperties.Builder
java.lang.Object
com.io7m.jcoronado.api.VulkanLayerProperties.Builder
- Enclosing class:
VulkanLayerProperties
Builds instances of type
VulkanLayerProperties
.
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 newVulkanLayerProperties
.from
(VulkanLayerPropertiesType instance) Fill a builder with attribute values from the providedVulkanLayerPropertiesType
instance.setDescription
(String description) Initializes the value for thedescription
attribute.setImplementationVersion
(int implementationVersion) Initializes the value for theimplementationVersion
attribute.Initializes the value for thename
attribute.setSpecificationVersion
(int specificationVersion) Initializes the value for thespecificationVersion
attribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedVulkanLayerPropertiesType
instance. 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:
this
builder for use in a chained invocation
-
setName
Initializes the value for thename
attribute.- Parameters:
name
- The value for name- Returns:
this
builder for use in a chained invocation
-
setDescription
Initializes the value for thedescription
attribute.- Parameters:
description
- The value for description- Returns:
this
builder for use in a chained invocation
-
setSpecificationVersion
Initializes the value for thespecificationVersion
attribute.- Parameters:
specificationVersion
- The value for specificationVersion- Returns:
this
builder for use in a chained invocation
-
setImplementationVersion
Initializes the value for theimplementationVersion
attribute.- Parameters:
implementationVersion
- The value for implementationVersion- Returns:
this
builder for use in a chained invocation
-
build
Builds a newVulkanLayerProperties
.- Returns:
- An immutable instance of VulkanLayerProperties
- Throws:
IllegalStateException
- if any required attributes are missing
-