Class VulkanExtensionProperties
java.lang.Object
com.io7m.jcoronado.api.VulkanExtensionProperties
- All Implemented Interfaces:
VulkanExtensionPropertiesType
public final class VulkanExtensionProperties
extends Object
implements VulkanExtensionPropertiesType
An extension.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanExtensionProperties. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forVulkanExtensionProperties.static VulkanExtensionPropertiescopyOf(VulkanExtensionPropertiesType instance) Creates an immutable copy of aVulkanExtensionPropertiesTypevalue.booleanThis instance is equal to all instances ofVulkanExtensionPropertiesthat have equal attribute values.inthashCode()Computes a hash code from attributes:name,version.name()static VulkanExtensionPropertiesConstruct a new immutableVulkanExtensionPropertiesinstance.toString()Prints the immutable valueVulkanExtensionPropertieswith attribute values.intversion()Copy the current immutable object by setting a value for thenameattribute.withVersion(int value) Copy the current immutable object by setting a value for theversionattribute.
-
Method Details
-
name
- Specified by:
namein interfaceVulkanExtensionPropertiesType- Returns:
- The name of the extension
-
version
public int version()- Specified by:
versionin interfaceVulkanExtensionPropertiesType- Returns:
- The version of the extension
-
withName
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name- Returns:
- A modified copy of the
thisobject
-
withVersion
Copy the current immutable object by setting a value for theversionattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for version- Returns:
- A modified copy of the
thisobject
-
equals
-
hashCode
-
toString
-
of
Construct a new immutableVulkanExtensionPropertiesinstance.- Parameters:
name- The value for thenameattributeversion- The value for theversionattribute- Returns:
- An immutable VulkanExtensionProperties instance
-
copyOf
Creates an immutable copy of aVulkanExtensionPropertiesTypevalue. 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 VulkanExtensionProperties instance
-
builder
Creates a builder forVulkanExtensionProperties.VulkanExtensionProperties.builder() .setName(String) // requiredname.setVersion(int) // requiredversion.build();- Returns:
- A new VulkanExtensionProperties builder
-