Package ai.devtools.utils
Class CollectionUtils
java.lang.Object
ai.devtools.utils.CollectionUtils
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSimple Tuple implementation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.gson.JsonObjectkeyValuesToJO(Object... ol) Builds a newJsonObjectfrom the list of Objects.
-
Constructor Details
-
CollectionUtils
public CollectionUtils()
-
-
Method Details
-
keyValuesToJO
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
-