MCPcopy Index your code
hub / github.com/apache/groovy / setProperties

Method setProperties

src/main/java/groovy/lang/MetaClassImpl.java:2005–2014  ·  view source on GitHub ↗

Sets a number of bean properties from the given Map where the keys are the String names of properties and the values are the values of the properties to set

(Object bean, Map map)

Source from the content-addressed store, hash-verified

2003 * properties to set
2004 */
2005 public void setProperties(Object bean, Map map) {
2006 checkInitalised();
2007 for (Object o : map.entrySet()) {
2008 Map.Entry entry = (Map.Entry) o;
2009 String key = entry.getKey().toString();
2010
2011 Object value = entry.getValue();
2012 setProperty(bean, key, value);
2013 }
2014 }
2015
2016 /** {@inheritDoc} */
2017 @Override

Callers 1

invokeConstructorMethod · 0.95

Calls 6

checkInitalisedMethod · 0.95
setPropertyMethod · 0.95
toStringMethod · 0.65
getKeyMethod · 0.65
getValueMethod · 0.65
entrySetMethod · 0.45

Tested by

no test coverage detected