Package org.fest.util

Class Sets

java.lang.Object
org.fest.util.Sets

public final class Sets extends Object
Utility methods related to Sets.
Author:
alruiz
  • Method Details

    • newLinkedHashSet

      public static <T> LinkedHashSet<T> newLinkedHashSet(T... elements)
      Creates a mutable LinkedHashSet containing the given elements.
      Type Parameters:
      T - the generic type of the LinkedHashSet to create.
      Parameters:
      elements - the elements to store in the LinkedHashSet.
      Returns:
      the created LinkedHashSet, of null if the given array of elements is null.
      Since:
      1.1.5