public abstract class CollectionMath extends Object
CollectionMath class.
Constructor and Description |
---|
CollectionMath() |
Modifier and Type | Method and Description |
---|---|
static Number |
average(List<? extends Number> list)
|
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)
|
static Number |
percentNotNull(List<? extends Number> list)
|
static Number |
percentNull(List<? extends Number> list)
|
public static long countNull(List<?> list)
List
list
- the List
public static long countNotNull(List<?> list)
List
list
- the listCopyright © 2021. All rights reserved.