Package org.apache.tiles.request.collection

# Class CollectionUtil

java.lang.Object
org.apache.tiles.request.collection.CollectionUtil

public final class CollectionUtil extends Object
Utilities for requests.

- ## Method Summary

  Modifier and Type
  Method
  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.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### 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.