Class VulkanExtensionProperties

    • Method Detail

      • withName

        public final VulkanExtensionProperties withName​(java.lang.String value)
        Copy the current immutable object by setting a value for the name attribute. An equals check used to prevent copying of the same value by returning this.
        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 the version attribute. A value equality check is used to prevent copying of the same value by returning this.
        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 of VulkanExtensionProperties that have equal attribute values.
        Overrides:
        equals in class java.lang.Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: name, version.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

        public java.lang.String toString()
        Prints the immutable value VulkanExtensionProperties with attribute values.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string representation of the value
      • of

        public static VulkanExtensionProperties of​(java.lang.String name,
                                                   int version)
        Construct a new immutable VulkanExtensionProperties instance.
        Parameters:
        name - The value for the name attribute
        version - The value for the version attribute
        Returns:
        An immutable VulkanExtensionProperties instance