Package com.algorand.algosdk.util
Class GenericObjToArray
- java.lang.Object
-
- com.algorand.algosdk.util.GenericObjToArray
-
public class GenericObjToArray extends Object
-
-
Constructor Summary
Constructors Constructor Description GenericObjToArray()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Object[]
unifyToArrayOfObjects(Object val)
Given an array/list-like object, infer an array of objects
-
-
-
Method Detail
-
unifyToArrayOfObjects
public static Object[] unifyToArrayOfObjects(Object val)
Given an array/list-like object, infer an array of objects- Parameters:
val
- an array/list-like object- Returns:
- inferred array of objects
- Throws:
IllegalArgumentException
- if it cannot infer if the object is list or array
-
-