Map Property
interface MapProperty<K, V> : Provider<Map<K, V>> , HasConfigurableValue, SupportsConvention(source)
Represents a property whose type is a Map of keys of type K and values of type V. Retains iteration order.
Instances of this interface are not thread-safe for reading and writing. It is not safe to share the same MapProperty instance between different projects.
Note: This interface is not intended for implementation by build script or plugin authors.
Since
5.1
Parameters
<K>
the type of keys.
<V>
the type of values.
See also
Create an instance of this as a managed property (preferred).
Create an instance of this manually.
Functions
Link copied to clipboard
Specifies the value to use as the convention for this property.
Specifies the provider of the value to use as the convention for this property.
Link copied to clipboard
Disallows further direct changes to this object.
Link copied to clipboard
Disallows reading the value of this object when its value may not yet be available or may still change.
Link copied to clipboard
Sets the value of this property to an empty map, and replaces any existing value.
Link copied to clipboard
Disallows further changes to the value of this property.
Link copied to clipboard
Requests that the final value of this object be calculated on the next read of the value, if not already known.
Link copied to clipboard
Sets the value of this property to the entries of the given Map, and replaces any existing value.
Sets the property to have the same value of the given provider, and replaces any existing value.
Link copied to clipboard
Unsets this object's explicit value, allowing the convention to be selected when evaluating this object's value.
Link copied to clipboard
Unsets this object's convention value.
Link copied to clipboard
Sets the value of this property to the entries of the given Map, and replaces any existing value.
Sets the property to have the same value of the given provider, and replaces any existing value.