- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanCommandBufferBeginInfo
-
- All Implemented Interfaces:
VulkanCommandBufferBeginInfoType
public final class VulkanCommandBufferBeginInfo extends java.lang.Object implements VulkanCommandBufferBeginInfoType
Structure specifying parameters of a command.- See Also:
- "VkCommandBufferBeginInfo"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VulkanCommandBufferBeginInfo.Builder
Builds instances of typeVulkanCommandBufferBeginInfo
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VulkanCommandBufferBeginInfo.Builder
builder()
Creates a builder forVulkanCommandBufferBeginInfo
.static VulkanCommandBufferBeginInfo
copyOf(VulkanCommandBufferBeginInfoType instance)
Creates an immutable copy of aVulkanCommandBufferBeginInfoType
value.boolean
equals(java.lang.Object another)
This instance is equal to all instances ofVulkanCommandBufferBeginInfo
that have equal attribute values.java.util.Set<VulkanCommandBufferUsageFlag>
flags()
int
hashCode()
Computes a hash code from attributes:flags
.static VulkanCommandBufferBeginInfo
of(java.lang.Iterable<VulkanCommandBufferUsageFlag> flags)
Construct a new immutableVulkanCommandBufferBeginInfo
instance.static VulkanCommandBufferBeginInfo
of(java.util.Set<VulkanCommandBufferUsageFlag> flags)
Construct a new immutableVulkanCommandBufferBeginInfo
instance.java.lang.String
toString()
Prints the immutable valueVulkanCommandBufferBeginInfo
with attribute values.VulkanCommandBufferBeginInfo
withFlags(VulkanCommandBufferUsageFlag... elements)
Copy the current immutable object with elements that replace the content offlags
.VulkanCommandBufferBeginInfo
withFlags(java.lang.Iterable<VulkanCommandBufferUsageFlag> elements)
Copy the current immutable object with elements that replace the content offlags
.
-
-
-
Method Detail
-
flags
public java.util.Set<VulkanCommandBufferUsageFlag> flags()
- Specified by:
flags
in interfaceVulkanCommandBufferBeginInfoType
- Returns:
- Usage behaviour for the command buffer
-
withFlags
public final VulkanCommandBufferBeginInfo withFlags(VulkanCommandBufferUsageFlag... elements)
Copy the current immutable object with elements that replace the content offlags
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withFlags
public final VulkanCommandBufferBeginInfo withFlags(java.lang.Iterable<VulkanCommandBufferUsageFlag> elements)
Copy the current immutable object with elements that replace the content offlags
. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
elements
- An iterable of flags elements to set- Returns:
- A modified copy of
this
object
-
equals
public boolean equals(java.lang.Object another)
This instance is equal to all instances ofVulkanCommandBufferBeginInfo
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:flags
.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueVulkanCommandBufferBeginInfo
with attribute values.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the value
-
of
public static VulkanCommandBufferBeginInfo of(java.util.Set<VulkanCommandBufferUsageFlag> flags)
Construct a new immutableVulkanCommandBufferBeginInfo
instance.- Parameters:
flags
- The value for theflags
attribute- Returns:
- An immutable VulkanCommandBufferBeginInfo instance
-
of
public static VulkanCommandBufferBeginInfo of(java.lang.Iterable<VulkanCommandBufferUsageFlag> flags)
Construct a new immutableVulkanCommandBufferBeginInfo
instance.- Parameters:
flags
- The value for theflags
attribute- Returns:
- An immutable VulkanCommandBufferBeginInfo instance
-
copyOf
public static VulkanCommandBufferBeginInfo copyOf(VulkanCommandBufferBeginInfoType instance)
Creates an immutable copy of aVulkanCommandBufferBeginInfoType
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 VulkanCommandBufferBeginInfo instance
-
builder
public static VulkanCommandBufferBeginInfo.Builder builder()
Creates a builder forVulkanCommandBufferBeginInfo
.- Returns:
- A new VulkanCommandBufferBeginInfo builder
-
-