类的使用
cn.dinodev.spring.commons.projection.PropertyProjector
使用PropertyProjector的程序包
-
cn.dinodev.spring.commons.projection中PropertyProjector的使用
修饰符和类型方法说明PropertyProjector.add(PropertyDescriptor getter, PropertyDescriptor setter) Add a property copier with specified json viewPropertyProjector.add(PropertyDescriptor getter, PropertyDescriptor setter, Supplier<Function<?, ?>> converter) Add a property copier with specified json viewPropertyProjector.add(PropertyDescriptor getter, String targetPropertyName, Function<?, ?> converter) Add a property copier with specified json viewAdd a property copierAdd a property copier with converter<V> PropertyProjector<S,T> PropertyProjector.add(Method sourceGetter, BiConsumer<T, V> setter) Add a property copier with specified json viewAdd a property copier with specified json viewPropertyProjector.add(String sourcePropertyName, String targetPropertyName, Function<?, ?> converter) Add a property copier with specified json view<V> PropertyProjector<S,T> PropertyProjector.add(String sourcePropertyName, BiConsumer<T, V> setter) Add a property copier with specified json view<V> PropertyProjector<S,T> PropertyProjector.add(String sourcePropertyName, BiConsumer<T, V> setter, Function<V, V> converter) Add a property copier with specified json view<V> PropertyProjector<S,T> PropertyProjector.add(Function<S, V> getter, BiConsumer<T, V> setter) Add a property copier with specified json view<V> PropertyProjector<S,T> Add a property copier with specified json view<V> PropertyProjector<S,T> PropertyProjector.add(Function<S, V> getter, BiConsumer<T, V> setter, Class<?>[] getterViews, Class<?>[] setterViews) Add a property copier with specified json view<V> PropertyProjector<S,T> Add a property copier with specified json view<V> PropertyProjector<S,T> PropertyProjector.add(Function<S, V> getter, BiConsumer<T, V> setter, Function<V, V> converter, Class<?>... views) Add a property copier with specified json view