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