gradle
8.4

# WrapUtil

open class WrapUtil(source)

### Deprecated

This class is only here to maintain binary compatibility with existing plugins.

#### Deprecated

Will be removed in Gradle 9.0.

## Constructors

WrapUtil
Link copied to clipboard
constructor()

## Functions

toArray
Link copied to clipboard
@SafeVarargs
open fun <T> toArray(items: Array<T>): Array<T>
toDomainObjectSet
Link copied to clipboard
@SafeVarargs
open fun <T> toDomainObjectSet(type: Class<T>, items: Array<T>): DomainObjectSet<T>
Wraps the given items in a mutable domain object set.
toLinkedSet
Link copied to clipboard
@SafeVarargs
open fun <T> toLinkedSet(items: Array<T>): Set<T>
Wraps the given items in a mutable ordered set.
toList
Link copied to clipboard
@SafeVarargs
open fun <T> toList(items: Array<T>): List<T>
open fun <T> toList(items: Iterable<out T>): List<T>
Wraps the given items in a mutable list.
toMap
Link copied to clipboard
open fun <K, V> toMap(key: K, value: V): Map<K, V>
Wraps the given key and value in a mutable unordered map.
toSet
Link copied to clipboard
@SafeVarargs
open fun <T> toSet(items: Array<T>): Set<T>
Wraps the given items in a mutable unordered set.
toSortedSet
Link copied to clipboard
@SafeVarargs
open fun <T> toSortedSet(items: Array<T>): SortedSet<T>
Wraps the given items in a mutable sorted set.
@SafeVarargs
open fun <T> toSortedSet(comp: Comparator<T>, items: Array<T>): SortedSet<T>
Wraps the given items in a mutable sorted set using the given comparator.