Package org.apache.dubbo.common.utils
Class ArrayUtils
java.lang.Object
org.apache.dubbo.common.utils.ArrayUtils
Contains some methods to check array.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic intstatic booleanChecks if the array is null or empty.static booleanisNotEmpty(Object[] array) Checks if the array is not null or empty.static <T> T[]of(T... values) Convert from variable arguments to array
-
Method Details
-
isEmpty
Checks if the array is null or empty.
- Parameters:
array- th array to check- Returns:
trueif the array is null or empty.
-
isNotEmpty
Checks if the array is not null or empty.
- Parameters:
array- th array to check- Returns:
trueif the array is not null or empty.
-
contains
-
indexOf
-
of
public static <T> T[] of(T... values) Convert from variable arguments to array- Type Parameters:
T- The class- Parameters:
values- variable arguments- Returns:
- array
- Since:
- 2.7.9
-