Class VulkanSpecializationMap

    • Method Detail

      • withEntries

        public final VulkanSpecializationMap withEntries​(java.lang.Iterable<? extends VulkanSpecializationMapEntry> elements)
        Copy the current immutable object with elements that replace the content of entries. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of entries elements to set
        Returns:
        A modified copy of this object
      • withData

        public final VulkanSpecializationMap withData​(java.nio.ByteBuffer value)
        Copy the current immutable object by setting a value for the data attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for data
        Returns:
        A modified copy of the this object
      • equals

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

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

        public static VulkanSpecializationMap of​(java.util.List<VulkanSpecializationMapEntry> entries,
                                                 java.nio.ByteBuffer data)
        Construct a new immutable VulkanSpecializationMap instance.
        Parameters:
        entries - The value for the entries attribute
        data - The value for the data attribute
        Returns:
        An immutable VulkanSpecializationMap instance
      • of

        public static VulkanSpecializationMap of​(java.lang.Iterable<? extends VulkanSpecializationMapEntry> entries,
                                                 java.nio.ByteBuffer data)
        Construct a new immutable VulkanSpecializationMap instance.
        Parameters:
        entries - The value for the entries attribute
        data - The value for the data attribute
        Returns:
        An immutable VulkanSpecializationMap instance
      • copyOf

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