boon/src/main/java/org/boon/core/reflection/MapperSimple.java
@SuppressWarnings("unchecked")
    private  void handleCollectionOfMaps( Object newInstance,
                                          FieldAccess field, Collection<Map<String, Object>> collectionOfMaps
    ) {

        Collection<Object> newCollection = Conversions.createCollection( field.type(), collectionOfMaps.size() );


        Class<?> componentClass = field.getComponentClass();

        if ( componentClass != null ) {


            for ( Map<String, Object> mapComponent : collectionOfMaps ) {

                newCollection.add( fromMap( mapComponent, componentClass ) );

            }
            field.setObject( newInstance, newCollection );

        }

    }
@SuppressWarnings("unchecked")
    private  void handleCollectionOfMaps( Object newInstance,
                                          FieldAccess field, Collection<Map<String, Object>> collectionOfMaps
    ) {

        Collection<Object> newCollection = Conversions.createCollection( field.type(), collectionOfMaps.size() );


        Class<?> componentClass = field.getComponentClass();

        if ( componentClass != null ) {


            for ( Map<String, Object> mapComponent : collectionOfMaps ) {

                newCollection.add( fromMap( mapComponent, componentClass ) );

            }
            field.setObject( newInstance, newCollection );

        }

    }
@ SuppressWarnings ( "unchecked" ) private void handleCollectionOfMaps ( Object newInstance , FieldAccess field , Collection < Map < String , Object > > collectionOfMaps ) { Collection < Object > newCollection = Conversions . createCollection ( field . type ( ) , collectionOfMaps . size ( ) ) ; Class < ? > componentClass = field . getComponentClass ( ) ; if ( componentClass != null ) { for ( Map < String , Object > mapComponent : collectionOfMaps ) { newCollection . add ( fromMap ( mapComponent , componentClass ) ) ; } field . setObject ( newInstance , newCollection ) ; } }
Processes an collection of maps.
@param newInstance  new instance we are injecting field into
@param field    field we are injecting a value into
Processes an collection of maps .