Class VulkanOffset3D.Builder
java.lang.Object
com.io7m.jcoronado.api.VulkanOffset3D.Builder
- Enclosing class:
VulkanOffset3D
Builds instances of type
VulkanOffset3D.
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 newVulkanOffset3D.final VulkanOffset3D.Builderfrom(VulkanOffset3DType instance) Fill a builder with attribute values from the providedVulkanOffset3DTypeinstance.final VulkanOffset3D.BuildersetX(int x) Initializes the value for thexattribute.final VulkanOffset3D.BuildersetY(int y) Initializes the value for theyattribute.final VulkanOffset3D.BuildersetZ(int z) Initializes the value for thezattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedVulkanOffset3DTypeinstance. 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
-
setX
-
setY
-
setZ
-
build
Builds a newVulkanOffset3D.- Returns:
- An immutable instance of VulkanOffset3D
- Throws:
IllegalStateException- if any required attributes are missing
-