public final class NumericUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
longToByte(Long input)
Converts a long to a byte array
|
static Duration |
max(Duration a,
Duration b) |
static Duration |
min(Duration a,
Duration b) |
static int |
saturatedCast(long value)
Returns the
int nearest in value to value. |
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
smallpublic static byte[] longToByte(Long input)
Copyright © 2026. All rights reserved.