Class VulkanLayerProperties

    • Method Detail

      • withName

        public final VulkanLayerProperties 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
      • withDescription

        public final VulkanLayerProperties withDescription​(java.lang.String value)
        Copy the current immutable object by setting a value for the description attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for description
        Returns:
        A modified copy of the this object
      • withSpecificationVersion

        public final VulkanLayerProperties withSpecificationVersion​(int value)
        Copy the current immutable object by setting a value for the specificationVersion attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for specificationVersion
        Returns:
        A modified copy of the this object
      • withImplementationVersion

        public final VulkanLayerProperties withImplementationVersion​(int value)
        Copy the current immutable object by setting a value for the implementationVersion attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for implementationVersion
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(java.lang.Object another)
        This instance is equal to all instances of VulkanLayerProperties 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, description, specificationVersion, implementationVersion.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

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

        public static VulkanLayerProperties of​(java.lang.String name,
                                               java.lang.String description,
                                               int specificationVersion,
                                               int implementationVersion)
        Construct a new immutable VulkanLayerProperties instance.
        Parameters:
        name - The value for the name attribute
        description - The value for the description attribute
        specificationVersion - The value for the specificationVersion attribute
        implementationVersion - The value for the implementationVersion attribute
        Returns:
        An immutable VulkanLayerProperties instance
      • copyOf

        public static VulkanLayerProperties copyOf​(VulkanLayerPropertiesType instance)
        Creates an immutable copy of a VulkanLayerPropertiesType 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 VulkanLayerProperties instance