Package org.fest.util

Class Sets


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> java.util.LinkedHashSet<T> newLinkedHashSet​(T... elements)
      Creates a mutable LinkedHashSet containing the given elements.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • newLinkedHashSet

        public static <T> java.util.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