Package br.com.bfmapper

Examples of br.com.bfmapper.Mapping


   
   
    StopWatch timer = new StopWatch();
    timer.start();
    for (int i = 0; i < numIters; i++) {
      new Mapping().apply(pessoaCanonico).apply(carroCanonico).to(Pessoa.class);
    }
    timer.stop();
    logger.log(Level.INFO, "Total time for additional " + numIters + " mappings: " + timer.getTime() + " milliseconds");
    logger.log(Level.INFO, "avg time for " + numIters + " mappings: " + (timer.getTime() / numIters) + " milliseconds");
  }
View Full Code Here


    for (final int count : counts) {
      final IntBean intBean1 = new IntBean(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
      final IntBean intBean2 = new IntBean();
      long time = System.nanoTime();
      for (int runs = 0; runs < count; runs++) {
          new Mapping().apply(intBean1).to(intBean2);
      }
      logger.log(Level.INFO, count + "\t" + (System.nanoTime() - time) / (1000 * 1000));
    }
  }
 
View Full Code Here

TOP

Related Classes of br.com.bfmapper.Mapping

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.