- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanDescriptorPoolSize
-
- All Implemented Interfaces:
VulkanDescriptorPoolSizeType
public final class VulkanDescriptorPoolSize extends java.lang.Object implements VulkanDescriptorPoolSizeType
- See Also:
- "VkDescriptorPoolSize"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VulkanDescriptorPoolSize.Builder
Builds instances of typeVulkanDescriptorPoolSize
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VulkanDescriptorPoolSize.Builder
builder()
Creates a builder forVulkanDescriptorPoolSize
.static VulkanDescriptorPoolSize
copyOf(VulkanDescriptorPoolSizeType instance)
Creates an immutable copy of aVulkanDescriptorPoolSizeType
value.int
descriptorCount()
boolean
equals(java.lang.Object another)
This instance is equal to all instances ofVulkanDescriptorPoolSize
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:type
,descriptorCount
.static VulkanDescriptorPoolSize
of(VulkanDescriptorType type, int descriptorCount)
Construct a new immutableVulkanDescriptorPoolSize
instance.java.lang.String
toString()
Prints the immutable valueVulkanDescriptorPoolSize
with attribute values.VulkanDescriptorType
type()
VulkanDescriptorPoolSize
withDescriptorCount(int value)
Copy the current immutable object by setting a value for thedescriptorCount
attribute.VulkanDescriptorPoolSize
withType(VulkanDescriptorType value)
Copy the current immutable object by setting a value for thetype
attribute.
-
-
-
Method Detail
-
type
public VulkanDescriptorType type()
- Specified by:
type
in interfaceVulkanDescriptorPoolSizeType
- Returns:
- The type of descriptor.
-
descriptorCount
public int descriptorCount()
- Specified by:
descriptorCount
in interfaceVulkanDescriptorPoolSizeType
- Returns:
- The number of descriptors of that type to allocate.
-
withType
public final VulkanDescriptorPoolSize withType(VulkanDescriptorType value)
Copy the current immutable object by setting a value for thetype
attribute. 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
this
object
-
withDescriptorCount
public final VulkanDescriptorPoolSize withDescriptorCount(int value)
Copy the current immutable object by setting a value for thedescriptorCount
attribute. 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
this
object
-
equals
public boolean equals(java.lang.Object another)
This instance is equal to all instances ofVulkanDescriptorPoolSize
that have equal attribute values.- Overrides:
equals
in classjava.lang.Object
- Returns:
true
ifthis
is equal toanother
instance
-
hashCode
public int hashCode()
Computes a hash code from attributes:type
,descriptorCount
.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueVulkanDescriptorPoolSize
with attribute values.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the value
-
of
public static VulkanDescriptorPoolSize of(VulkanDescriptorType type, int descriptorCount)
Construct a new immutableVulkanDescriptorPoolSize
instance.- Parameters:
type
- The value for thetype
attributedescriptorCount
- The value for thedescriptorCount
attribute- Returns:
- An immutable VulkanDescriptorPoolSize instance
-
copyOf
public static VulkanDescriptorPoolSize copyOf(VulkanDescriptorPoolSizeType instance)
Creates an immutable copy of aVulkanDescriptorPoolSizeType
value. 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
public static VulkanDescriptorPoolSize.Builder builder()
Creates a builder forVulkanDescriptorPoolSize
.- Returns:
- A new VulkanDescriptorPoolSize builder
-
-