Class VulkanSemaphoreTimelineCreateInfo
java.lang.Object
com.io7m.jcoronado.api.VulkanSemaphoreTimelineCreateInfo
- All Implemented Interfaces:
VulkanSemaphoreCreateInfoType, VulkanSemaphoreTimelineCreateInfoType
public final class VulkanSemaphoreTimelineCreateInfo
extends Object
implements VulkanSemaphoreTimelineCreateInfoType
The type of Vulkan timeline semaphore creation information.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanSemaphoreTimelineCreateInfo. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forVulkanSemaphoreTimelineCreateInfo.copyOf(VulkanSemaphoreTimelineCreateInfoType instance) Creates an immutable copy of aVulkanSemaphoreTimelineCreateInfoTypevalue.booleanThis instance is equal to all instances ofVulkanSemaphoreTimelineCreateInfothat have equal attribute values.inthashCode()Computes a hash code from attributes:initialValue.longtoString()Prints the immutable valueVulkanSemaphoreTimelineCreateInfowith attribute values.withInitialValue(long value) Copy the current immutable object by setting a value for theinitialValueattribute.
-
Method Details
-
initialValue
public long initialValue()- Specified by:
initialValuein interfaceVulkanSemaphoreTimelineCreateInfoType- Returns:
- The initial semaphore value
-
withInitialValue
Copy the current immutable object by setting a value for theinitialValueattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for initialValue- Returns:
- A modified copy or the
thisobject
-
equals
-
hashCode
-
toString
-
copyOf
public static VulkanSemaphoreTimelineCreateInfo copyOf(VulkanSemaphoreTimelineCreateInfoType instance) Creates an immutable copy of aVulkanSemaphoreTimelineCreateInfoTypevalue. 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 VulkanSemaphoreTimelineCreateInfo instance
-
builder
Creates a builder forVulkanSemaphoreTimelineCreateInfo.VulkanSemaphoreTimelineCreateInfo.builder() .setInitialValue(long) // required
initialValue.build();- Returns:
- A new VulkanSemaphoreTimelineCreateInfo builder
-