Class CollectionUtils
- java.lang.Object
-
- fr.ens.biologie.genomique.eoulsan.util.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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <E> Collection<E>
nullToEmpty(Collection<E> c)
Return an empty collection if the input collection is null;
-
-
-
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
-
-