public class WrapUtil extends Object
| Constructor and Description |
|---|
WrapUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Set<T> |
asSet(Collection<T> c) |
static <T> T[] |
toArray(T... items) |
static <T> DomainObjectSet<T> |
toDomainObjectSet(Class<T> type,
T... items)
Wraps the given items in a mutable domain object set.
|
static <K,V> Map<K,V> |
toLinkedMap(K key,
V value)
Wraps the given key and value in a mutable ordered map.
|
static <T> Set<T> |
toLinkedSet(T... items)
Wraps the given items in a mutable ordered set.
|
static <T> List<T> |
toList(Iterable<? extends T> items)
Wraps the given items in a mutable list.
|
static <T> List<T> |
toList(T... items)
Wraps the given items in a mutable list.
|
static <K,V> Map<K,V> |
toMap(K key,
V value)
Wraps the given key and value in a mutable unordered map.
|
static Properties |
toProperties(String key,
String value)
Wraps the given key and value in a mutable properties instance.
|
static <T> Set<T> |
toSet(T... items)
Wraps the given items in a mutable unordered set.
|
static <K,V> SortedMap<K,V> |
toSortedMap(K key,
V value)
Wraps the given key and value in a mutable sorted map.
|
static <T> SortedSet<T> |
toSortedSet(Comparator<T> comp,
T... items)
Wraps the given items in a mutable sorted set using the given comparator.
|
static <T> SortedSet<T> |
toSortedSet(T... items)
Wraps the given items in a mutable sorted set.
|
public static <T> Set<T> toSet(T... items)
public static <T> DomainObjectSet<T> toDomainObjectSet(Class<T> type, T... items)
public static <T> Set<T> toLinkedSet(T... items)
public static <T> SortedSet<T> toSortedSet(T... items)
public static <T> SortedSet<T> toSortedSet(Comparator<T> comp, T... items)
public static <T> List<T> toList(T... items)
public static <T> List<T> toList(Iterable<? extends T> items)
public static <K,V> Map<K,V> toMap(K key, V value)
public static <K,V> SortedMap<K,V> toSortedMap(K key, V value)
public static <K,V> Map<K,V> toLinkedMap(K key, V value)
public static Properties toProperties(String key, String value)
public static <T> T[] toArray(T... items)
public static <T> Set<T> asSet(Collection<T> c)
Copyright © 2013. All rights reserved