- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanSemaphoreCreateInfo
-
- All Implemented Interfaces:
VulkanSemaphoreCreateInfoType
public final class VulkanSemaphoreCreateInfo extends java.lang.Object implements VulkanSemaphoreCreateInfoType
The type of Vulkan semaphore creation information.- See Also:
- "VkSemaphoreCreateInfo"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VulkanSemaphoreCreateInfo.Builder
Builds instances of typeVulkanSemaphoreCreateInfo
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VulkanSemaphoreCreateInfo.Builder
builder()
Creates a builder forVulkanSemaphoreCreateInfo
.static VulkanSemaphoreCreateInfo
copyOf(VulkanSemaphoreCreateInfoType instance)
Creates an immutable copy of aVulkanSemaphoreCreateInfoType
value.boolean
equals(java.lang.Object another)
This instance is equal to all instances ofVulkanSemaphoreCreateInfo
that have equal attribute values.java.util.Set<VulkanSemaphoreCreateFlag>
flags()
int
hashCode()
Computes a hash code from attributes:flags
.static VulkanSemaphoreCreateInfo
of(java.lang.Iterable<VulkanSemaphoreCreateFlag> flags)
Construct a new immutableVulkanSemaphoreCreateInfo
instance.static VulkanSemaphoreCreateInfo
of(java.util.Set<VulkanSemaphoreCreateFlag> flags)
Construct a new immutableVulkanSemaphoreCreateInfo
instance.java.lang.String
toString()
Prints the immutable valueVulkanSemaphoreCreateInfo
with attribute values.VulkanSemaphoreCreateInfo
withFlags(VulkanSemaphoreCreateFlag... elements)
Copy the current immutable object with elements that replace the content offlags
.VulkanSemaphoreCreateInfo
withFlags(java.lang.Iterable<VulkanSemaphoreCreateFlag> elements)
Copy the current immutable object with elements that replace the content offlags
.
-
-
-
Method Detail
-
flags
public java.util.Set<VulkanSemaphoreCreateFlag> flags()
- Specified by:
flags
in interfaceVulkanSemaphoreCreateInfoType
- Returns:
- The semaphore creation flags
-
withFlags
public final VulkanSemaphoreCreateInfo withFlags(VulkanSemaphoreCreateFlag... 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 VulkanSemaphoreCreateInfo withFlags(java.lang.Iterable<VulkanSemaphoreCreateFlag> 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 ofVulkanSemaphoreCreateInfo
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 valueVulkanSemaphoreCreateInfo
with attribute values.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the value
-
of
public static VulkanSemaphoreCreateInfo of(java.util.Set<VulkanSemaphoreCreateFlag> flags)
Construct a new immutableVulkanSemaphoreCreateInfo
instance.- Parameters:
flags
- The value for theflags
attribute- Returns:
- An immutable VulkanSemaphoreCreateInfo instance
-
of
public static VulkanSemaphoreCreateInfo of(java.lang.Iterable<VulkanSemaphoreCreateFlag> flags)
Construct a new immutableVulkanSemaphoreCreateInfo
instance.- Parameters:
flags
- The value for theflags
attribute- Returns:
- An immutable VulkanSemaphoreCreateInfo instance
-
copyOf
public static VulkanSemaphoreCreateInfo copyOf(VulkanSemaphoreCreateInfoType instance)
Creates an immutable copy of aVulkanSemaphoreCreateInfoType
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 VulkanSemaphoreCreateInfo instance
-
builder
public static VulkanSemaphoreCreateInfo.Builder builder()
Creates a builder forVulkanSemaphoreCreateInfo
.- Returns:
- A new VulkanSemaphoreCreateInfo builder
-
-