|
|||||||||
| 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
| Constructor Summary | |
|---|---|
CollectionMath()
|
|
| Method Summary | |
|---|---|
static java.math.BigDecimal |
average(java.util.List<java.math.BigDecimal> list)
Get the average of the contents of a List of BigDecimal values, excluding null entries |
static java.lang.Number |
average(java.util.List<java.lang.Number> list)
Get the average of the contents of a List of Number values, excluding null entries |
static long |
countNotNull(java.util.List list)
Get the number of non-null entries in a List |
static long |
countNull(java.util.List list)
Get the number of null entries in a List |
static java.math.BigDecimal |
median(java.util.List<java.math.BigDecimal> list)
Get the median of the contents of a List of BigDecimal values, excluding null entries |
static java.lang.Number |
median(java.util.List<java.lang.Number> list)
Get the median of the contents of a List of Number values, excluding null entries |
static java.math.BigDecimal |
percentNotNull(java.util.List<java.math.BigDecimal> list)
Get the percentage of not-null entries in a List of BigDecimal values |
static java.lang.Number |
percentNotNull(java.util.List<java.lang.Number> list)
Get the percentage of not-null entries in a List of Number values |
static java.math.BigDecimal |
percentNull(java.util.List<java.math.BigDecimal> list)
Get the percentage of null entries in a List of BigDecimal values |
static java.lang.Number |
percentNull(java.util.List<java.lang.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(java.util.List list)
List
list - the List
public static long countNotNull(java.util.List list)
List
list - the list
public static java.lang.Number percentNull(java.util.List<java.lang.Number> list)
List of Number values
list - the List of Number values
Number valuepublic static java.math.BigDecimal percentNull(java.util.List<java.math.BigDecimal> list)
List of BigDecimal values
list - the List of BigDecimal values
BigDecimal valuepublic static java.lang.Number percentNotNull(java.util.List<java.lang.Number> list)
List of Number values
list - the List of Number values
Number valuepublic static java.math.BigDecimal percentNotNull(java.util.List<java.math.BigDecimal> list)
List of BigDecimal values
list - the List of BigDecimal values
BigDecimal valuepublic static java.lang.Number average(java.util.List<java.lang.Number> list)
List of Number values, excluding null entries
list - the List of Number values
Number valuepublic static java.math.BigDecimal average(java.util.List<java.math.BigDecimal> list)
List of BigDecimal values, excluding null entries
list - the List of BigDecimal values
BigDecimal valuepublic static java.lang.Number median(java.util.List<java.lang.Number> list)
List of Number values, excluding null entries
list - the List of Number values
Number valuepublic static java.math.BigDecimal median(java.util.List<java.math.BigDecimal> list)
List of BigDecimal values, excluding null entries
list - the List of BigDecimal values
BigDecimal value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||