Package org.atlanmod.commons.primitive
Class Shorts
- java.lang.Object
-
- org.atlanmod.commons.primitive.Shorts
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]toBytes(short value)Encodes ashortto abytearray.static byte[]toBytes(Short value)Encodes aShortto abytearray.
-
-
-
Method Detail
-
toBytes
@Nonnull public static byte[] toBytes(short value)
Encodes ashortto abytearray.- Parameters:
value- the value to encode- Returns:
- a
bytearray
-
toBytes
@Nonnull public static byte[] toBytes(Short value)
Encodes aShortto abytearray.- Parameters:
value- the value to encode- Returns:
- a
bytearray - Throws:
NullPointerException- if thevalueisnull
-
-