World.java |
import java.util.*; /** You can name the class as you wish. It can be: Root, Reposityr, Database, * .... * * @@pat.root * */ public class World { private List transfers; //anything here.. //--- Constructors ---------- public World() { transfers = new ArrayList(); } /** @@pat.transaction */ public void transfer() { transfers.add(new Transfer()); } public List getTransfers(){ return transfers; } protected final static long serialVersionUID = 1L; }