|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gradle.util.WrapUtil
public class WrapUtil
Common methods to wrap objects in generic collections.
Constructor Summary | |
---|---|
WrapUtil()
|
Method Summary | ||
---|---|---|
static
|
toArray(T... items)
|
|
static
|
toLinkedMap(K key,
V value)
Wraps the given key and value in a mutable ordered map. |
|
static
|
toLinkedSet(T... items)
Wraps the given items in a mutable ordered set. |
|
static
|
toList(java.lang.Iterable<? extends T> items)
Wraps the given items in a mutable list. |
|
static
|
toList(T... items)
Wraps the given items in a mutable list. |
|
static
|
toMap(K key,
V value)
Wraps the given key and value in a mutable unordered map. |
|
static java.util.Properties |
toProperties(java.lang.String key,
java.lang.String value)
Wraps the given key and value in a mutable properties instance. |
|
static
|
toSet(T... items)
Wraps the given items in a mutable unordered set. |
|
static
|
toSortedMap(K key,
V value)
Wraps the given key and value in a mutable sorted map. |
|
static
|
toSortedSet(java.util.Comparator<T> comp,
T... items)
Wraps the given items in a mutable sorted set using the given comparator. |
|
static
|
toSortedSet(T... items)
Wraps the given items in a mutable sorted set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WrapUtil()
Method Detail |
---|
public static <T> java.util.Set<T> toSet(T... items)
public static <T> java.util.Set<T> toLinkedSet(T... items)
public static <T> java.util.SortedSet<T> toSortedSet(T... items)
public static <T> java.util.SortedSet<T> toSortedSet(java.util.Comparator<T> comp, T... items)
public static <T> java.util.List<T> toList(T... items)
public static <T> java.util.List<T> toList(java.lang.Iterable<? extends T> items)
public static <K,V> java.util.Map<K,V> toMap(K key, V value)
public static <K,V> java.util.SortedMap<K,V> toSortedMap(K key, V value)
public static <K,V> java.util.Map<K,V> toLinkedMap(K key, V value)
public static java.util.Properties toProperties(java.lang.String key, java.lang.String value)
public static <T> T[] toArray(T... items)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |