boon/src/main/java/org/boon/core/reflection/MapperSimple.java
@Override
    public  <T> List<T> convertListOfMapsToObjects(List<Map> list, Class<T> componentType) {
        List<Object> newList = new ArrayList<>( list.size() );
        for ( Object obj : list ) {

            if ( obj instanceof Value) {
                obj = ( ( Value ) obj ).toValue();
            }

            if ( obj instanceof Map ) {

                Map map = ( Map ) obj;
                if ( map instanceof ValueMapImpl) {
                    newList.add( fromValueMap(  ( Map<String, Value> ) map, componentType ) );
                } else {
                    newList.add( fromMap(  map, componentType ) );
                }
            } else {
                newList.add( Conversions.coerce(componentType, obj) );
            }
        }
        return ( List<T> ) newList;
    }
@Override
    public  <T> List<T> convertListOfMapsToObjects(List<Map> list, Class<T> componentType) {
        List<Object> newList = new ArrayList<>( list.size() );
        for ( Object obj : list ) {

            if ( obj instanceof Value) {
                obj = ( ( Value ) obj ).toValue();
            }

            if ( obj instanceof Map ) {

                Map map = ( Map ) obj;
                if ( map instanceof ValueMapImpl) {
                    newList.add( fromValueMap(  ( Map<String, Value> ) map, componentType ) );
                } else {
                    newList.add( fromMap(  map, componentType ) );
                }
            } else {
                newList.add( Conversions.coerce(componentType, obj) );
            }
        }
        return ( List<T> ) newList;
    }
@ Override public < T > List < T > convertListOfMapsToObjects ( List < Map > list , Class < T > componentType ) { List < Object > newList = new ArrayList <> ( list . size ( ) ) ; for ( Object obj : list ) { if ( obj instanceof Value ) { obj = ( ( Value ) obj ) . toValue ( ) ; } if ( obj instanceof Map ) { Map map = ( Map ) obj ; if ( map instanceof ValueMapImpl ) { newList . add ( fromValueMap ( ( Map < String , Value > ) map , componentType ) ) ; } else { newList . add ( fromMap ( map , componentType ) ) ; } } else { newList . add ( Conversions . coerce ( componentType , obj ) ) ; } } return ( List < T > ) newList ; }
This converts a list of maps to objects.
I always forget that this exists. I need to remember.

@param list the input list
@param <T> generics
@return a new list
This converts a list of maps to objects . I always forget that this exists . I need to remember .