net.sourceforge.jpotpourri.util
Class CollectionUtil<T>
java.lang.Object
net.sourceforge.jpotpourri.util.CollectionUtil<T>
- Type Parameters:
T
- concrete collection type
public class CollectionUtil<T>
- extends java.lang.Object
- Author:
- christoph_pickl@users.sourceforge.net
Method Summary |
static java.lang.String[] |
asArray(java.lang.String... values)
|
java.util.Collection<T> |
asCollection(T... values)
|
java.util.List<T> |
asImmutableList(T... values)
|
java.util.List<T> |
asList(T... values)
|
java.util.Set<T> |
asSet(T... values)
|
static java.util.Collection<java.lang.String> |
asStringCollection(java.lang.String... values)
|
static java.util.Set<java.lang.String> |
asStringSet(java.lang.String... values)
|
static java.util.List<java.lang.String> |
immutableList(java.lang.String... values)
|
static java.util.Set<java.lang.String> |
immutableSet(java.util.Set<java.lang.String> original)
|
static java.util.Set<java.lang.String> |
immutableSet(java.lang.String... values)
|
static java.lang.String |
toString(java.util.Collection<?> collection)
|
static java.lang.String |
toString(java.util.Map<?,?> map)
|
static java.lang.String |
toString(java.util.Set<?> set)
|
static java.lang.String |
toString(java.util.Set<?> set,
java.lang.String separator)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CollectionUtil
public CollectionUtil()
asCollection
public final java.util.Collection<T> asCollection(T... values)
asSet
public final java.util.Set<T> asSet(T... values)
asList
public final java.util.List<T> asList(T... values)
asImmutableList
public final java.util.List<T> asImmutableList(T... values)
asStringCollection
public static final java.util.Collection<java.lang.String> asStringCollection(java.lang.String... values)
asStringSet
public static final java.util.Set<java.lang.String> asStringSet(java.lang.String... values)
asArray
public static final java.lang.String[] asArray(java.lang.String... values)
toString
public static final java.lang.String toString(java.util.Collection<?> collection)
immutableSet
public static final java.util.Set<java.lang.String> immutableSet(java.util.Set<java.lang.String> original)
immutableSet
public static final java.util.Set<java.lang.String> immutableSet(java.lang.String... values)
immutableList
public static final java.util.List<java.lang.String> immutableList(java.lang.String... values)
toString
public static final java.lang.String toString(java.util.Set<?> set)
toString
public static final java.lang.String toString(java.util.Set<?> set,
java.lang.String separator)
toString
public static java.lang.String toString(java.util.Map<?,?> map)
Copyright © 2008. All Rights Reserved.