@Test void map_shouldBeExpandedWith_MapExpander() { assertThat(this.expanderRegistry.getExpanderByType(Map.class)).isInstanceOf(MapExpander.class); }
@Override public ExpressionExpander getExpanderByType(Class<?> parameterType) { return this.expanderMapCache.computeIfAbsent(parameterType, type -> { if (Iterable.class.isAssignableFrom(type)) { return ListExpander.getInstance(); } else if (Map.class.isAssignableFrom(type)) { return MapExpander.getInstance(); } else if (ExpanderUtils.isSimpleType(type)) { return SimpleExpander.getInstance(); } else { return BeanExpander.getInstance(this); } }); }
CachingExpanderRegistry implements ExpanderRegistry { @Override public ExpressionExpander getExpanderByType(Class<?> parameterType) { return this.expanderMapCache.computeIfAbsent(parameterType, type -> { if (Iterable.class.isAssignableFrom(type)) { return ListExpander.getInstance(); } else if (Map.class.isAssignableFrom(type)) { return MapExpander.getInstance(); } else if (ExpanderUtils.isSimpleType(type)) { return SimpleExpander.getInstance(); } else { return BeanExpander.getInstance(this); } }); } }
CachingExpanderRegistry implements ExpanderRegistry { @Override public ExpressionExpander getExpanderByType(Class<?> parameterType) { return this.expanderMapCache.computeIfAbsent(parameterType, type -> { if (Iterable.class.isAssignableFrom(type)) { return ListExpander.getInstance(); } else if (Map.class.isAssignableFrom(type)) { return MapExpander.getInstance(); } else if (ExpanderUtils.isSimpleType(type)) { return SimpleExpander.getInstance(); } else { return BeanExpander.getInstance(this); } }); }  }
CachingExpanderRegistry implements ExpanderRegistry { @Override public ExpressionExpander getExpanderByType(Class<?> parameterType) { return this.expanderMapCache.computeIfAbsent(parameterType, type -> { if (Iterable.class.isAssignableFrom(type)) { return ListExpander.getInstance(); } else if (Map.class.isAssignableFrom(type)) { return MapExpander.getInstance(); } else if (ExpanderUtils.isSimpleType(type)) { return SimpleExpander.getInstance(); } else { return BeanExpander.getInstance(this); } }); }  @Override ExpressionExpander getExpanderByType(Class<?> parameterType); @Override ExpressionExpander getExpander(Class<? extends ExpressionExpander> expanderClass); }
CachingExpanderRegistry implements ExpanderRegistry { @Override public ExpressionExpander getExpanderByType(Class<?> parameterType) { return this.expanderMapCache.computeIfAbsent(parameterType, type -> { if (Iterable.class.isAssignableFrom(type)) { return ListExpander.getInstance(); } else if (Map.class.isAssignableFrom(type)) { return MapExpander.getInstance(); } else if (ExpanderUtils.isSimpleType(type)) { return SimpleExpander.getInstance(); } else { return BeanExpander.getInstance(this); } }); }  @Override ExpressionExpander getExpanderByType(Class<?> parameterType); @Override ExpressionExpander getExpander(Class<? extends ExpressionExpander> expanderClass);  }