From: Eric P. <th...@us...> - 2010-02-14 20:02:37
|
Update of /cvsroot/sandev/sand/apps/basics/src/org/sandev/basics/structs In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv23028 Modified Files: SandCollectionMessage.java Log Message: Added insertElement to this general interface since it is occasionally useful Index: SandCollectionMessage.java =================================================================== RCS file: /cvsroot/sandev/sand/apps/basics/src/org/sandev/basics/structs/SandCollectionMessage.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** SandCollectionMessage.java 3 Apr 2009 00:02:44 -0000 1.5 --- SandCollectionMessage.java 14 Feb 2010 20:02:27 -0000 1.6 *************** *** 104,107 **** --- 104,115 ---- /** + * Insert the specified element at the specified index. If the + * specified index is greater than the index of the last element, + * then the specified element is appended. + */ + public void insertElement(int index,SandInstanceMessage elem); + + + /** * Remove this element from the collection. Return true if the element * was found, false otherwise. The given element is downcast as needed. |