@ParametersAreNonnullByDefault public final class Chars extends Object
char and Character.| Modifier and Type | Method and Description |
|---|---|
static byte[] |
toBytes(char value)
Encodes a
char to a byte array. |
static byte[] |
toBytes(Character value)
Encodes a
Character to a byte array. |
@Nonnull public static byte[] toBytes(char value)
char to a byte array.value - the value to encodebyte arrayNullPointerException - if the value is nullShorts.toBytes(short)@Nonnull public static byte[] toBytes(Character value)
Character to a byte array.value - the value to encodebyte arrayNullPointerException - if the value is nullCopyright © 2017–2019 Atlanmod. All rights reserved.