Class VulkanDescriptorPoolSize
java.lang.Object
com.io7m.jcoronado.api.VulkanDescriptorPoolSize
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanDescriptorPoolSize. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forVulkanDescriptorPoolSize.static VulkanDescriptorPoolSizecopyOf(VulkanDescriptorPoolSizeType instance) Creates an immutable copy of aVulkanDescriptorPoolSizeTypevalue.intbooleanThis instance is equal to all instances ofVulkanDescriptorPoolSizethat have equal attribute values.inthashCode()Computes a hash code from attributes:type,descriptorCount.static VulkanDescriptorPoolSizeof(VulkanDescriptorType type, int descriptorCount) Construct a new immutableVulkanDescriptorPoolSizeinstance.toString()Prints the immutable valueVulkanDescriptorPoolSizewith attribute values.type()final VulkanDescriptorPoolSizewithDescriptorCount(int value) Copy the current immutable object by setting a value for thedescriptorCountattribute.final VulkanDescriptorPoolSizewithType(VulkanDescriptorType value) Copy the current immutable object by setting a value for thetypeattribute.
-
Method Details
-
type
- Specified by:
typein interfaceVulkanDescriptorPoolSizeType- Returns:
- The type of descriptor.
-
descriptorCount
public int descriptorCount()- Specified by:
descriptorCountin interfaceVulkanDescriptorPoolSizeType- Returns:
- The number of descriptors of that type to allocate.
-
withType
Copy the current immutable object by setting a value for thetypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy of the
thisobject
-
withDescriptorCount
Copy the current immutable object by setting a value for thedescriptorCountattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for descriptorCount- Returns:
- A modified copy of the
thisobject
-
equals
-
hashCode
-
toString
-
of
Construct a new immutableVulkanDescriptorPoolSizeinstance.- Parameters:
type- The value for thetypeattributedescriptorCount- The value for thedescriptorCountattribute- Returns:
- An immutable VulkanDescriptorPoolSize instance
-
copyOf
Creates an immutable copy of aVulkanDescriptorPoolSizeTypevalue. 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 VulkanDescriptorPoolSize instance
-
builder
Creates a builder forVulkanDescriptorPoolSize.VulkanDescriptorPoolSize.builder() .setType(com.io7m.jcoronado.api.VulkanDescriptorType) // requiredtype.setDescriptorCount(int) // requireddescriptorCount.build();- Returns:
- A new VulkanDescriptorPoolSize builder
-