Package ai.devtools.utils
Class CollectionUtils
- java.lang.Object
-
- ai.devtools.utils.CollectionUtils
-
public class CollectionUtils extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCollectionUtils.Tuple<K,V>Simple Tuple implementation.
-
Constructor Summary
Constructors Constructor Description CollectionUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.google.gson.JsonObjectkeyValuesToJO(Object... ol)Builds a newJsonObjectfrom the list of Objects.
-
-
-
Method Detail
-
keyValuesToJO
public static com.google.gson.JsonObject keyValuesToJO(Object... ol)
Builds a newJsonObjectfrom the list of Objects. Pass in values such that[ k1, v1, k2, v2, k3, v3... ].- Parameters:
ol- TheObjects to use- Returns:
- A
JsonObjectderived from the values inol
-
-