public final class ByteUtil extends Object
Modifier and Type | Method and Description |
---|---|
static byte |
toNonNegativeByteExact(int value)
Returns the value of the
value argument;
throwing an exception if the value overflows a byte . |
public static byte toNonNegativeByteExact(int value)
value
argument;
throwing an exception if the value overflows a byte
.value
- the int valueIllegalArgumentException
- if the argument
is negativeArithmeticException
- if the argument
overflows a byteCopyright © 2021. All rights reserved.