public class JSONUtil extends Object
Constructor and Description |
---|
JSONUtil() |
Modifier and Type | Method and Description |
---|---|
static Object |
fill(Object target,
Map<String,Object> source)
Uses reflection to fill public fields and Bean properties of
the target object from the source Map.
|
static Object |
fill(Object target,
Map<String,Object> source,
boolean useProperties)
Uses reflection to fill public fields and optionally Bean
properties of the target object from the source Map.
|
static void |
tryFill(Object target,
Map<String,Object> source)
Ignores reflection exceptions while using reflection to fill
public fields and Bean properties of the target object from the
source Map.
|
public static Object fill(Object target, Map<String,Object> source) throws IntrospectionException, IllegalAccessException, InvocationTargetException
public static Object fill(Object target, Map<String,Object> source, boolean useProperties) throws IntrospectionException, IllegalAccessException, InvocationTargetException
Copyright © 2022 VMware, Inc. or its affiliates.. All rights reserved.