Class CollectionUtil

java.lang.Object
tools.CollectionUtil

public class CollectionUtil extends Object
Provides utilities for manipulating collections of objects.
Since:
Revision 701
  • Method Details

    • copyFirst

      public static <T> List<T> copyFirst(List<T> list, int count)
      Copies count items off of list, starting from the beginning.
      Type Parameters:
      T - The type of the list.
      Parameters:
      list - The list to copy from.
      count - The number of items to copy.
      Returns:
      The copied list.