Class NewInstanceSetterWrapperForCollectionsAndMaps

  • All Implemented Interfaces:
    Assignment, Writable

    public class NewInstanceSetterWrapperForCollectionsAndMaps
    extends SetterWrapperForCollectionsAndMapsWithNullCheck
    This wrapper handles the situation where an assignment is done via the setter, while creating the collection or map using a no-args constructor.
    Author:
    Ben Zegveld
    • Constructor Detail

      • NewInstanceSetterWrapperForCollectionsAndMaps

        public NewInstanceSetterWrapperForCollectionsAndMaps​(Assignment decoratedAssignment,
                                                             List<Type> thrownTypesToExclude,
                                                             Type targetType,
                                                             TypeFactory typeFactory,
                                                             boolean fieldAssignment)
    • Method Detail

      • getInstanceVar

        public String getInstanceVar()