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

    All Methods Static Methods Concrete Methods
    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.

    - ### 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 © 2000–2025 Apache Software Foundation. All rights reserved.