[Megameknet-cvs] MegaMekNET/src/common BlackBoard.java,1.3,1.4
Status: Inactive
Brought to you by:
mcwizard
From: Immanuel S. <im...@us...> - 2005-04-11 20:01:40
|
Update of /cvsroot/megameknet/MegaMekNET/src/common In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15726/src/common Modified Files: BlackBoard.java Log Message: fixed xml saving, now featuring asynchron saves. Index: BlackBoard.java =================================================================== RCS file: /cvsroot/megameknet/MegaMekNET/src/common/BlackBoard.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** BlackBoard.java 11 Apr 2005 19:13:20 -0000 1.3 --- BlackBoard.java 11 Apr 2005 20:01:31 -0000 1.4 *************** *** 14,17 **** --- 14,18 ---- package common; + import java.util.Collection; import java.util.Iterator; import java.util.Vector; *************** *** 29,36 **** * Vector because access via Iterator has to be synchronized. */ ! private Vector data = new Vector(); ! public Iterator iterator() { ! return data.iterator(); } --- 30,49 ---- * Vector because access via Iterator has to be synchronized. */ ! private Vector data; ! /** ! * Clones from a list of BlackBoardMessages. ! * ! */ ! public BlackBoard(Collection blackBoardMessages) { ! data = new Vector(blackBoardMessages); ! } ! ! public BlackBoard() { ! data = new Vector(); ! } ! ! public Collection allMessages() { ! return data; } |