public class DurationUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Duration |
average(Collection<Duration> durations)
Computes and returns the mean Duration of the given collection of Durations.
|
static Duration |
max(Collection<Duration> durations)
Returns the highest/maximum Duration of a given collection.
|
static Duration |
min(Collection<Duration> durations)
Returns the lowest/minimum Duration of a given collection.
|
public static Duration average(Collection<Duration> durations)
durations - the collection which mean Duration is to be calculated; can be nullDuration.ZERO, if the
collection is either null or emptypublic static Duration min(Collection<Duration> durations)
durations - the collection which the minimum element is to be calculatedDuration.ZERO, if the
collection is either null or emptypublic static Duration max(Collection<Duration> durations)
durations - the collection which the maximum element is to be calculatedDuration.ZERO, if the
collection is either null or emptyCopyright © 2022. All rights reserved.