Class CollectionUtil

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

public final class CollectionUtil extends Object
Utilities for requests.
  • 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.