net.sourceforge.argval.collection
Class CollectionUtil
java.lang.Object
net.sourceforge.argval.collection.CollectionUtil
public class CollectionUtil
- extends Object
Method Summary |
static Collection<String> |
stringToCollection(Collection<String> coll,
String multipleValues,
String separator)
|
static List<String> |
stringToList(String multipleValues,
String separator)
|
static Set<String> |
stringToSet(String multipleValues,
String separator)
|
static String[] |
toArray(List<?> list)
|
static Object[] |
toArray(Set<?> set)
|
static List<String> |
toList(String[] stringArray)
|
static String |
toString(byte[] byteArray)
|
static String |
toString(List<?> messageList)
|
static String |
toString(List<?> messageList,
CollectionUtilConfig config)
|
static String |
toString(Map<?,?> patternMap)
|
static String |
toString(Map<?,?> patternMap,
CollectionUtilConfig config)
|
static String |
toString(Object[] input)
|
static String |
toString(Object[] input,
CollectionUtilConfig config)
|
static String |
toString(Object[] nameArray,
Object[] valueArray)
|
static String |
toString(Object[] nameArray,
Object[] valueArray,
CollectionUtilConfig config)
|
static String |
toString(Set<?> messageSet)
|
static String |
toString(StringBuffer strBuf,
List<?> inputList,
CollectionUtilConfig config)
|
static StringBuffer |
toString(StringBuffer strBuf,
Map<?,?> patternMap,
CollectionUtilConfig config)
|
static String |
toString(StringBuffer strBuf,
Object[] input,
CollectionUtilConfig config)
|
static String |
toString(StringBuffer strBuf,
Object[] nameArray,
Object[] valueArray,
CollectionUtilConfig config)
|
static StringBuffer |
toString(StringBuffer strBuf,
String name,
String[] nameArray,
Object[] valueArray)
|
static StringBuffer |
toString(StringBuffer strBuf,
String name,
String[] nameArray,
Object[] valueArray,
CollectionUtilConfig config)
|
static String |
toString(String name,
String[] nameArray,
Object[] valueArray)
|
static String[] |
toStringArray(Set<?> set)
Puts all the instance of the collection in a String array. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CollectionUtil
public CollectionUtil()
toStringArray
public static String[] toStringArray(Set<?> set)
- Puts all the instance of the collection in a String array. Calls on each instance
of the given Set the
toString()
.
- Parameters:
set
- The input collection.
- Returns:
- The array in which each instance of the Set is represented as a String.
toArray
public static String[] toArray(List<?> list)
toString
public static String toString(Object[] nameArray,
Object[] valueArray)
toString
public static String toString(Object[] nameArray,
Object[] valueArray,
CollectionUtilConfig config)
toString
public static String toString(StringBuffer strBuf,
Object[] nameArray,
Object[] valueArray,
CollectionUtilConfig config)
toString
public static String toString(Object[] input)
toString
public static String toString(Object[] input,
CollectionUtilConfig config)
toString
public static String toString(StringBuffer strBuf,
Object[] input,
CollectionUtilConfig config)
toArray
public static Object[] toArray(Set<?> set)
toString
public static String toString(String name,
String[] nameArray,
Object[] valueArray)
toString
public static StringBuffer toString(StringBuffer strBuf,
String name,
String[] nameArray,
Object[] valueArray)
toString
public static StringBuffer toString(StringBuffer strBuf,
String name,
String[] nameArray,
Object[] valueArray,
CollectionUtilConfig config)
toString
public static String toString(Map<?,?> patternMap)
toString
public static String toString(Map<?,?> patternMap,
CollectionUtilConfig config)
toString
public static StringBuffer toString(StringBuffer strBuf,
Map<?,?> patternMap,
CollectionUtilConfig config)
toString
public static String toString(byte[] byteArray)
stringToList
public static List<String> stringToList(String multipleValues,
String separator)
stringToSet
public static Set<String> stringToSet(String multipleValues,
String separator)
stringToCollection
public static Collection<String> stringToCollection(Collection<String> coll,
String multipleValues,
String separator)
toString
public static String toString(Set<?> messageSet)
toString
public static String toString(List<?> messageList)
toString
public static String toString(List<?> messageList,
CollectionUtilConfig config)
toString
public static String toString(StringBuffer strBuf,
List<?> inputList,
CollectionUtilConfig config)
toList
public static List<String> toList(String[] stringArray)
Copyright © 2013 Verhagen Software. All Rights Reserved.