|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.core.utils.CollectionMath
public class CollectionMath
CollectionMath class.
| Constructor Summary | |
|---|---|
CollectionMath()
|
|
| Method Summary | |
|---|---|
static Number |
average(List<? extends Number> list)
Get the average of the contents of a List of Number values, excluding null entries |
static long |
countNotNull(List list)
Get the number of non-null entries in a List |
static long |
countNull(List list)
Get the number of null entries in a List |
static Number |
median(List<? extends Number> list)
Get the median of the contents of a List of Number values, excluding null entries |
static Number |
percentNotNull(List<? extends Number> list)
Get the percentage of not-null entries in a List of Number values |
static Number |
percentNull(List<? extends Number> list)
Get the percentage of null entries in a List of Number values |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CollectionMath()
| Method Detail |
|---|
public static long countNull(List list)
List
list - the List
public static long countNotNull(List list)
List
list - the list
public static Number percentNull(List<? extends Number> list)
List of Number values
list - the List of Number values
Number valuepublic static Number percentNotNull(List<? extends Number> list)
List of Number values
list - the List of Number values
Number valuepublic static Number average(List<? extends Number> list)
List of Number values, excluding null entries
list - the List of Number values
Number valuepublic static Number median(List<? extends Number> list)
List of Number values, excluding null entries
list - the List of Number values
Number value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||