Class VulkanClearRectangle

    • Method Detail

      • withRectangle

        public final VulkanClearRectangle withRectangle​(VulkanRectangle2D value)
        Copy the current immutable object by setting a value for the rectangle attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for rectangle
        Returns:
        A modified copy of the this object
      • withBaseArrayLayer

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

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

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

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

        public static VulkanClearRectangle of​(VulkanRectangle2D rectangle,
                                              int baseArrayLayer,
                                              int layerCount)
        Construct a new immutable VulkanClearRectangle instance.
        Parameters:
        rectangle - The value for the rectangle attribute
        baseArrayLayer - The value for the baseArrayLayer attribute
        layerCount - The value for the layerCount attribute
        Returns:
        An immutable VulkanClearRectangle instance
      • copyOf

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