|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectau.edu.anu.portal.portlets.basiclti.support.CollectionsSupport
public class CollectionsSupport
Java.util.Collections utility class. Does a few miscellaneous tasks
| Constructor Summary | |
|---|---|
CollectionsSupport()
|
|
| Method Summary | |
|---|---|
static void |
printMap(Map<?,?> map)
Print all key-value pairs of a map to the log at debug level |
static List<String> |
splitStringToList(String str,
String delimiter)
Split a String to a List, based on the given delimiter |
static List<String> |
splitStringToList(String str,
String delimiter,
boolean chomp)
Split a String to a List, based on the given delimiter, and also chomp any new lines that may be present. |
static Map<String,String> |
splitStringToMap(String str,
String setDelimiter,
String kvDelimiter)
Split a String to a Map, based on the given delimiters, one for the sets and one for each pair |
static Map<String,String> |
splitStringToMap(String str,
String setDelimiter,
String kvDelimiter,
boolean chomp)
Split a String to a Map, based on the given delimiters, one for the sets and one for each pair. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CollectionsSupport()
| Method Detail |
|---|
public static void printMap(Map<?,?> map)
map -
public static List<String> splitStringToList(String str,
String delimiter)
str - the stringdelimiter - delimiter to split on
public static List<String> splitStringToList(String str,
String delimiter,
boolean chomp)
str - the stringdelimiter - delimiter to split onchomp - remove new lines as well?
public static Map<String,String> splitStringToMap(String str,
String setDelimiter,
String kvDelimiter)
str - setDelimiter - the delimiter between each set of itemskvDelimiter - the delimiter between each item in a pair
public static Map<String,String> splitStringToMap(String str,
String setDelimiter,
String kvDelimiter,
boolean chomp)
str - setDelimiter - the delimiter between each set of itemskvDelimiter - the delimiter between each item in a pairchomp - whether or not to chomp new lines that may separate each pair
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||