Class CollectionUtils


  • public class CollectionUtils
    extends Object
    This class define an utility class that contains useful methods for collections.
    Since:
    2.0
    Author:
    Laurent Jourdren
    • Method Detail

      • nullToEmpty

        public static <E> Collection<E> nullToEmpty​(Collection<E> c)
        Return an empty collection if the input collection is null;
        Parameters:
        c - input collection
        Returns:
        a collection