Class CollectionUtils
java.lang.Object
com.sun.enterprise.universal.collections.CollectionUtils
all-static methods for handling operations with Collections
- Author:
- bnevins
-
Method Summary
Modifier and TypeMethodDescriptionConvert a Properties object, which is aMap<Object,Object>into a <code<Map<String,String>static StringConvert a String[] into a space-delimited Stringstatic StringConvert a List of String into a space-delimited Stringstatic StringTired of dumping a String representation of a Map? Then call me!static String[]toStringArray(Map<String, String> map) static StringtoStringLines(String[] arr) Convert a String[] into a newline-delimited String
-
Method Details
-
propertiesToStringMap
Convert a Properties object, which is aMap<Object,Object>into a <code<Map<String,String>- Parameters:
p- The Properties object to convert- Returns:
- The converted Map
-
toString
Tired of dumping a String representation of a Map? Then call me!- Parameters:
map- The map to turn into a printable String- Returns:
- The pretty String
-
toString
Convert a String[] into a space-delimited String- Parameters:
arr- The String array to convert- Returns:
- The pretty String
-
toStringLines
Convert a String[] into a newline-delimited String- Parameters:
arr- The String array to convert- Returns:
- The pretty String
-
toString
Convert a List of String into a space-delimited String- Parameters:
arr- The String array to convert- Returns:
- The pretty String
-
toStringArray
-