Class VulkanClearValueColorFloatingPoint

    • Method Detail

      • withRed

        public final VulkanClearValueColorFloatingPoint withRed​(float value)
        Copy the current immutable object by setting a value for the red attribute. A value strict bits equality used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for red
        Returns:
        A modified copy of the this object
      • withGreen

        public final VulkanClearValueColorFloatingPoint withGreen​(float value)
        Copy the current immutable object by setting a value for the green attribute. A value strict bits equality used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for green
        Returns:
        A modified copy of the this object
      • withBlue

        public final VulkanClearValueColorFloatingPoint withBlue​(float value)
        Copy the current immutable object by setting a value for the blue attribute. A value strict bits equality used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for blue
        Returns:
        A modified copy of the this object
      • withAlpha

        public final VulkanClearValueColorFloatingPoint withAlpha​(float value)
        Copy the current immutable object by setting a value for the alpha attribute. A value strict bits equality used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for alpha
        Returns:
        A modified copy of the this object
      • equals

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

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

        public static VulkanClearValueColorFloatingPoint of​(float red,
                                                            float green,
                                                            float blue,
                                                            float alpha)
        Construct a new immutable VulkanClearValueColorFloatingPoint instance.
        Parameters:
        red - The value for the red attribute
        green - The value for the green attribute
        blue - The value for the blue attribute
        alpha - The value for the alpha attribute
        Returns:
        An immutable VulkanClearValueColorFloatingPoint instance