Class ListUtils

java.lang.Object
org.axonframework.common.ListUtils

public final class ListUtils extends Object
Utility methods for operations on lists.
Since:
4.4
Author:
Stefan Andjelkovic
  • Method Details

    • distinct

      public static <E> List<E> distinct(List<E> list)
      Returns a new list containing unique elements from the given list. Original list is not modified.
      Type Parameters:
      E - the type of elements in the list
      Parameters:
      list - original list that will not be modified
      Returns:
      List with unique elements