- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanExtensionProperties
-
- All Implemented Interfaces:
VulkanExtensionPropertiesType
public final class VulkanExtensionProperties extends java.lang.Object implements VulkanExtensionPropertiesType
An extension.- See Also:
- "VkExtensionProperties"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VulkanExtensionProperties.Builder
Builds instances of typeVulkanExtensionProperties
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VulkanExtensionProperties.Builder
builder()
Creates a builder forVulkanExtensionProperties
.static VulkanExtensionProperties
copyOf(VulkanExtensionPropertiesType instance)
Creates an immutable copy of aVulkanExtensionPropertiesType
value.boolean
equals(java.lang.Object another)
This instance is equal to all instances ofVulkanExtensionProperties
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:name
,version
.java.lang.String
name()
static VulkanExtensionProperties
of(java.lang.String name, int version)
Construct a new immutableVulkanExtensionProperties
instance.java.lang.String
toString()
Prints the immutable valueVulkanExtensionProperties
with attribute values.int
version()
VulkanExtensionProperties
withName(java.lang.String value)
Copy the current immutable object by setting a value for thename
attribute.VulkanExtensionProperties
withVersion(int value)
Copy the current immutable object by setting a value for theversion
attribute.
-
-
-
Method Detail
-
name
public java.lang.String name()
- Specified by:
name
in interfaceVulkanExtensionPropertiesType
- Returns:
- The name of the extension
-
version
public int version()
- Specified by:
version
in interfaceVulkanExtensionPropertiesType
- Returns:
- The version of the extension
-
withName
public final VulkanExtensionProperties withName(java.lang.String value)
Copy the current immutable object by setting a value for thename
attribute. 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
this
object
-
withVersion
public final VulkanExtensionProperties withVersion(int value)
Copy the current immutable object by setting a value for theversion
attribute. 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
this
object
-
equals
public boolean equals(java.lang.Object another)
This instance is equal to all instances ofVulkanExtensionProperties
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:name
,version
.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueVulkanExtensionProperties
with attribute values.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the value
-
of
public static VulkanExtensionProperties of(java.lang.String name, int version)
Construct a new immutableVulkanExtensionProperties
instance.- Parameters:
name
- The value for thename
attributeversion
- The value for theversion
attribute- Returns:
- An immutable VulkanExtensionProperties instance
-
copyOf
public static VulkanExtensionProperties copyOf(VulkanExtensionPropertiesType instance)
Creates an immutable copy of aVulkanExtensionPropertiesType
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 VulkanExtensionProperties instance
-
builder
public static VulkanExtensionProperties.Builder builder()
Creates a builder forVulkanExtensionProperties
.- Returns:
- A new VulkanExtensionProperties builder
-
-