Package a.b.cloner.impl

Examples of a.b.cloner.impl.BookCloner988.apply()


   
    // instantiate cloner
    BookCloner988 bookCloner = new BookCloner988();
   
    // create clone
    Book clonedBook = bookCloner.apply(book);

    // clone should have same structure and values
    System.out.println(clonedBook.getAuthor()); //  John O'Farrel
    System.out.println(clonedBook.getSections().get(1).getName()); // Section2
    System.out.println(clonedBook.getSections().get(1).getParagraphs().iterator().next().getNumber()); // 1066
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.