- java.lang.Object
-
- com.io7m.jcoronado.vma.VMAAllocatorCreateInfo
-
- All Implemented Interfaces:
VMAAllocatorCreateInfoType
public final class VMAAllocatorCreateInfo extends java.lang.Object implements VMAAllocatorCreateInfoType
Information required to create an allocator.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VMAAllocatorCreateInfo.Builder
Builds instances of typeVMAAllocatorCreateInfo
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VMAAllocatorCreateInfo.Builder
builder()
Creates a builder forVMAAllocatorCreateInfo
.static VMAAllocatorCreateInfo
copyOf(VMAAllocatorCreateInfoType instance)
Creates an immutable copy of aVMAAllocatorCreateInfoType
value.boolean
equals(java.lang.Object another)
This instance is equal to all instances ofVMAAllocatorCreateInfo
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:logicalDevice
.VulkanLogicalDeviceType
logicalDevice()
static VMAAllocatorCreateInfo
of(VulkanLogicalDeviceType logicalDevice)
Construct a new immutableVMAAllocatorCreateInfo
instance.java.lang.String
toString()
Prints the immutable valueVMAAllocatorCreateInfo
with attribute values.VMAAllocatorCreateInfo
withLogicalDevice(VulkanLogicalDeviceType value)
Copy the current immutable object by setting a value for thelogicalDevice
attribute.
-
-
-
Method Detail
-
logicalDevice
public VulkanLogicalDeviceType logicalDevice()
- Specified by:
logicalDevice
in interfaceVMAAllocatorCreateInfoType
- Returns:
- The logical device used for allocations
-
withLogicalDevice
public final VMAAllocatorCreateInfo withLogicalDevice(VulkanLogicalDeviceType value)
Copy the current immutable object by setting a value for thelogicalDevice
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for logicalDevice- Returns:
- A modified copy of the
this
object
-
equals
public boolean equals(java.lang.Object another)
This instance is equal to all instances ofVMAAllocatorCreateInfo
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:logicalDevice
.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueVMAAllocatorCreateInfo
with attribute values.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the value
-
of
public static VMAAllocatorCreateInfo of(VulkanLogicalDeviceType logicalDevice)
Construct a new immutableVMAAllocatorCreateInfo
instance.- Parameters:
logicalDevice
- The value for thelogicalDevice
attribute- Returns:
- An immutable VMAAllocatorCreateInfo instance
-
copyOf
public static VMAAllocatorCreateInfo copyOf(VMAAllocatorCreateInfoType instance)
Creates an immutable copy of aVMAAllocatorCreateInfoType
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 VMAAllocatorCreateInfo instance
-
builder
public static VMAAllocatorCreateInfo.Builder builder()
Creates a builder forVMAAllocatorCreateInfo
.- Returns:
- A new VMAAllocatorCreateInfo builder
-
-