public class JavaScriptMapFactory extends Object
| Constructor and Description |
|---|
JavaScriptMapFactory() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Object> |
javaScriptObjectToMap(org.mozilla.javascript.NativeObject nativeObj)
Converts a JavaScript object of any nature to a Java map.
|
public static Map<String,Object> javaScriptObjectToMap(org.mozilla.javascript.NativeObject nativeObj)
nativeObj - The native object to convert to Java mapIllegalArgumentException - if the keys to any of the values in the native object are not Strings or ints,
as it should be impossible to generate such objects.Copyright © 2010–2024 Open Identity Platform Community. All rights reserved.