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