public final class CollectionUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.Map<java.lang.String,java.lang.String> |
asMap(java.util.Properties properties)
Returns parameterized version of
Properties the instance
remains the same. |
static java.util.Properties |
asProperties(java.util.Map<java.lang.String,?> map)
Converts specified map to
Properties . |
static boolean |
isEmpty(java.util.Collection<?> collection)
Null-safe utility method to check if collection is empty.
|
static <V> java.util.Map<java.lang.String,V> |
newCaseInsensitiveAsciiMap()
Create a map optimized for case insensitive search for keys.
|
public static <V> java.util.Map<java.lang.String,V> newCaseInsensitiveAsciiMap()
public static java.util.Map<java.lang.String,java.lang.String> asMap(java.util.Properties properties)
Properties
the instance
remains the same.properties
- properties to represent as a map.public static java.util.Properties asProperties(java.util.Map<java.lang.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(java.util.Collection<?> collection)
collection
- collection to check.Copyright © Copyright 2006-2019 The Scriptella Project Team.