org.apache.tiles.request.collection
Class CollectionUtil

Package class diagram package CollectionUtil
java.lang.Object
  extended by org.apache.tiles.request.collection.CollectionUtil

public final class CollectionUtil
extends Object

Utilities for requests.

Version:
$Rev: 1064782 $ $Date: 2011-01-28 18:08:52 +0100 (Fri, 28 Jan 2011) $

Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

key

public static String key(Object key)
Returns the string representation of the key.

Parameters:
key - The key.
Returns:
The string representation of the key.
Throws:
IllegalArgumentException - If the key is null.

enumerationSize

public static int enumerationSize(Enumeration<?> keys)
Returns the number of elements in an enumeration, by iterating it.

Parameters:
keys - The enumeration.
Returns:
The number of elements.


Copyright © 2001-2012 Apache Software Foundation. All Rights Reserved.