public final class CommonUtils extends Object
Common utils regarding treatment of parameter values and encoding operations. This class is for internal use only.
Modifier and Type | Field and Description |
---|---|
static String |
STRING_OUTPUT_TYPE_BASE64 |
static String |
STRING_OUTPUT_TYPE_HEXADECIMAL |
Modifier and Type | Method and Description |
---|---|
static byte[] |
appendArrays(byte[] firstArray,
byte[] secondArray) |
static byte[] |
fromHexadecimal(String message) |
static Boolean |
getStandardBooleanValue(String valueStr) |
static String |
getStandardStringOutputType(String valueStr) |
static boolean |
isEmpty(String string) |
static boolean |
isNotEmpty(String string) |
static int |
nextRandomInt() |
static String[] |
split(String string) |
static String[] |
split(String string,
String separators) |
static String |
substringAfter(String string,
String separator) |
static String |
substringBefore(String string,
String separator) |
static String |
toHexadecimal(byte[] message) |
static void |
validateIsTrue(boolean expression,
String message) |
static void |
validateNotEmpty(String string,
String message) |
static void |
validateNotNull(Object object,
String message) |
public static final String STRING_OUTPUT_TYPE_BASE64
public static final String STRING_OUTPUT_TYPE_HEXADECIMAL
public static String toHexadecimal(byte[] message)
public static byte[] fromHexadecimal(String message)
public static boolean isEmpty(String string)
public static boolean isNotEmpty(String string)
public static void validateIsTrue(boolean expression, String message)
public static int nextRandomInt()
public static byte[] appendArrays(byte[] firstArray, byte[] secondArray)
Copyright © 2021 JBoss by Red Hat. All rights reserved.