public final class CollectionUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Map<String,String> |
asMap(Properties properties)
Returns parameterized version of
Properties the instance
remains the same. |
static Properties |
asProperties(Map<String,?> map)
Converts specified map to
Properties. |
static boolean |
isEmpty(Collection<?> collection)
Null-safe utility method to check if collection is empty.
|
static <V> Map<String,V> |
newCaseInsensitiveAsciiMap()
Create a map optimized for case insensitive search for keys.
|
public static <V> Map<String,V> newCaseInsensitiveAsciiMap()
public static Map<String,String> asMap(Properties properties)
Properties the instance
remains the same.properties - properties to represent as a map.public static Properties asProperties(Map<String,?> map)
Properties. The keys and String values
are migrated unchnaged, other types of values are converted to String.map - map to convert.public static boolean isEmpty(Collection<?> collection)
collection - collection to check.Copyright © 2006-2012. All Rights Reserved.