Class CollectionsUtils

java.lang.Object
com.sun.faces.util.CollectionsUtils

public class CollectionsUtils extends Object
Author:
asmirnov@exadel.com
  • Method Details

    • asSet

      @SafeVarargs public static <T> Set<T> asSet(T... a)
    • ar

      @SafeVarargs public static <T> T[] ar(T... ts)
    • ar

      public static <T> T[] ar()
    • map

      public static <T, V> CollectionsUtils.ConstMap<T,V> map()
    • asIterator

      public static <T> Iterator<T> asIterator(T[] items)
      Returns:
      an unmodifiable Iterator over the passed typed array
    • asIterator

      public static <T extends SelectItem> Iterator<T> asIterator(T[] items)
      Returns:
      an unmodifiable Iterator over the passed array of SelectItem
    • unmodifiableIterator

      public static <T> Iterator<T> unmodifiableIterator(Enumeration<T> enumeration)
      Returns:
      an Iterator over the passed Enumeration with no remove support
    • unmodifiableIterator

      public static <T> Iterator<T> unmodifiableIterator(Iterator<T> iterator)
      Returns:
      an Iterator over the passed Iterator with no remove support