public final class CollectionUtil extends Object
Modifier and Type | Method and Description |
---|---|
static int |
enumerationSize(Enumeration<?> keys)
Returns the number of elements in an enumeration, by iterating it.
|
static String |
key(Object key)
Returns the string representation of the key.
|
public static String key(Object key)
key
- The key.IllegalArgumentException
- If the key is null
.public static int enumerationSize(Enumeration<?> keys)
keys
- The enumeration.Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.