A collection of utilities for converting to strings.
Type Params | Return Type | Name and description |
---|---|---|
|
static String |
stringize(Object stringy) Converts most things to a string. |
|
static java.util.List<String> |
stringize(Iterable<?> stringyThings) Converts a collection of most things to a list of strings. |
|
static void |
updateStringProperty(Project project, Provider<String> provider, Object stringy) Updates a Provider. |
Converts most things to a string. Closures are evaluated as well.
stringy
- An object that can be converted to a string or a closure that
can be evaluated to something that can be converted to a string.Converts a collection of most things to a list of strings. Closures are evaluated as well.
Iterable
- list of objects that can be converted to strings, including closure that can be evaluated
into objects that can be converted to strings.Updates a Provider. If the Provider is a Property it will be updated in place, otherwise the provider will be assigned a new Provider instance. This method requires Gradle 4.3 at minimum
project
- Project context for creating providersprovider
- Current providerstringy
- Value that should be lazy-resolved.