Class VulkanExtent3D
java.lang.Object
com.io7m.jcoronado.api.VulkanExtent3D
- All Implemented Interfaces:
VulkanExtent3DType
Structure specifying a three-dimensional extent.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic VulkanExtent3D.Builderbuilder()Creates a builder forVulkanExtent3D.static VulkanExtent3DcopyOf(VulkanExtent3DType instance) Creates an immutable copy of aVulkanExtent3DTypevalue.intdepth()booleanThis instance is equal to all instances ofVulkanExtent3Dthat have equal attribute values.inthashCode()Computes a hash code from attributes:width,height,depth.intheight()static VulkanExtent3Dof(int width, int height, int depth) Construct a new immutableVulkanExtent3Dinstance.toString()Prints the immutable valueVulkanExtent3Dwith attribute values.intwidth()final VulkanExtent3DwithDepth(int value) Copy the current immutable object by setting a value for thedepthattribute.final VulkanExtent3DwithHeight(int value) Copy the current immutable object by setting a value for theheightattribute.final VulkanExtent3DwithWidth(int value) Copy the current immutable object by setting a value for thewidthattribute.
-
Method Details
-
width
public int width()- Specified by:
widthin interfaceVulkanExtent3DType- Returns:
- The width of the extent
-
height
public int height()- Specified by:
heightin interfaceVulkanExtent3DType- Returns:
- The height of the extent
-
depth
public int depth()- Specified by:
depthin interfaceVulkanExtent3DType- Returns:
- The depth of the extent
-
withWidth
Copy the current immutable object by setting a value for thewidthattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for width- Returns:
- A modified copy of the
thisobject
-
withHeight
Copy the current immutable object by setting a value for theheightattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for height- Returns:
- A modified copy of the
thisobject
-
withDepth
Copy the current immutable object by setting a value for thedepthattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for depth- Returns:
- A modified copy of the
thisobject
-
equals
-
hashCode
-
toString
-
of
Construct a new immutableVulkanExtent3Dinstance.- Parameters:
width- The value for thewidthattributeheight- The value for theheightattributedepth- The value for thedepthattribute- Returns:
- An immutable VulkanExtent3D instance
-
copyOf
Creates an immutable copy of aVulkanExtent3DTypevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable VulkanExtent3D instance
-
builder
Creates a builder forVulkanExtent3D.VulkanExtent3D.builder() .setWidth(int) // requiredwidth.setHeight(int) // requiredheight.setDepth(int) // requireddepth.build();- Returns:
- A new VulkanExtent3D builder
-