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