Package org.opennms.core.utils
Class CollectionMath
- java.lang.Object
-
- org.opennms.core.utils.CollectionMath
-
public abstract class CollectionMath extends Object
CollectionMath class.
- Version:
- $Id: $
- Author:
- Benjamin Reed
-
-
Constructor Summary
Constructors Constructor Description CollectionMath()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Numberaverage(List<? extends Number> list)static longcountNotNull(List<?> list)Get the number of non-null entries in aListstatic longcountNull(List<?> list)Get the number of null entries in aListstatic Numbermedian(List<? extends Number> list)static NumberpercentNotNull(List<? extends Number> list)static NumberpercentNull(List<? extends Number> list)
-
-
-
Method Detail
-
countNull
public static long countNull(List<?> list)
Get the number of null entries in aList- Parameters:
list- theList- Returns:
- the number of null entries
-
countNotNull
public static long countNotNull(List<?> list)
Get the number of non-null entries in aList- Parameters:
list- the list- Returns:
- the number of non-null entries
-
-