public final class NumericUtils extends Object
| Modifier and Type | Method and Description | 
|---|---|
| static Duration | max(Duration a,
   Duration b) | 
| static Duration | min(Duration a,
   Duration b) | 
| static int | saturatedCast(long value)Returns the  intnearest in value tovalue. | 
public static int saturatedCast(long value)
int nearest in value to value.value - any long valueint if it is in the range of the int type,
 Integer.MAX_VALUE if it is too large, or Integer.MIN_VALUE if it is too
 smallCopyright © 2023. All rights reserved.