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 Number
average(List<? extends Number> list)
static long
countNotNull(List<?> list)
Get the number of non-null entries in aList
static long
countNull(List<?> list)
Get the number of null entries in aList
static Number
median(List<? extends Number> list)
static Number
percentNotNull(List<? extends Number> list)
static Number
percentNull(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
-
-