Class CommonUtil
- java.lang.Object
-
- io.github.sashirestela.openai.support.CommonUtil
-
public class CommonUtil extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
capitalize(String text)
<T> T[]
concatArrays(T[] array1, T[] array2)
List<String>
findFullMatches(String text, String regex)
static CommonUtil
get()
boolean
isNullOrEmpty(Object[] array)
boolean
isNullOrEmpty(String text)
boolean
isNullOrEmpty(List<?> list)
boolean
matches(String text, String regex)
-
-
-
Method Detail
-
get
public static CommonUtil get()
-
isNullOrEmpty
public boolean isNullOrEmpty(Object[] array)
-
isNullOrEmpty
public boolean isNullOrEmpty(List<?> list)
-
isNullOrEmpty
public boolean isNullOrEmpty(String text)
-
concatArrays
public <T> T[] concatArrays(T[] array1, T[] array2)
-
-