@Immutable @ThreadSafe public class Utilities extends Object
NodeID objects are immutable once created.
Constructor and Description |
---|
Utilities() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
bytesFromHexString(String s)
Create a byte[] from a String containing hexadecimal values.
|
static String |
toHexDotsString(byte[] array) |
static String |
toHexDotsString(int[] array) |
static String |
toHexPair(int i) |
static String |
toHexSpaceString(byte[] array) |
static String |
toHexSpaceString(int[] array) |
@CheckReturnValue @NonNull public static String toHexPair(int i)
@CheckReturnValue @NonNull public static String toHexSpaceString(int[] array)
@CheckReturnValue @NonNull public static String toHexSpaceString(byte[] array)
@CheckReturnValue @NonNull public static String toHexDotsString(int[] array)
@CheckReturnValue @NonNull public static String toHexDotsString(byte[] array)
public static byte[] bytesFromHexString(String s)
s
- String of hex values, ala "01 02 0A B1 21". Either spaces or dots
can be used as separators.Information on copyright, trademarks and licenses is linked here.
Site hosted by: