public static <ENTITIFROM, ENTITYTO> DaoPageResult<ENTITYTO> getResult(DaoPageResult<ENTITIFROM> daoPageFrom,
                                                                           DataTransfer<ENTITIFROM,
                                                                                           ENTITYTO> dataTransfer) {

        List<ENTITYTO> entitytos = new ArrayList<ENTITYTO>();

        //
        // 转换
        //
        for (ENTITIFROM entitifrom : daoPageFrom.getResult()) {

            ENTITYTO entityto = dataTransfer.transfer(entitifrom);
            entitytos.add(entityto);
        }

        //
        // result
        //
        DaoPageResult<ENTITYTO> daoPageResult = new DaoPageResult<ENTITYTO>();

        daoPageResult.setResult(entitytos);
        daoPageResult.setTotalCount(daoPageFrom.getTotalCount());

        return daoPageResult;
    }
public static < ENTITIFROM , ENTITYTO > DaoPageResult < ENTITYTO > getResult ( DaoPageResult < ENTITIFROM > daoPageFrom , DataTransfer < ENTITIFROM , ENTITYTO > dataTransfer ) { List < ENTITYTO > entitytos = new ArrayList < ENTITYTO > ( ) ; for ( ENTITIFROM entitifrom : daoPageFrom . getResult ( ) ) { ENTITYTO entityto = dataTransfer . transfer ( entitifrom ) ; entitytos . add ( entityto ) ; } DaoPageResult < ENTITYTO > daoPageResult = new DaoPageResult < ENTITYTO > ( ) ; daoPageResult . setResult ( entitytos ) ; daoPageResult . setTotalCount ( daoPageFrom . getTotalCount ( ) ) ; return daoPageResult ; }
将结果进行转化

@return