Author: fred
Date: 2007-07-27 15:45:41 +0000 (Fri, 27 Jul 2007)
New Revision: 14383
Modified:
trunk/plugins/Echo/src/plugins/echo/Nodes.java
Log:
+remove & size methods
Modified: trunk/plugins/Echo/src/plugins/echo/Nodes.java
===================================================================
--- trunk/plugins/Echo/src/plugins/echo/Nodes.java 2007-07-27 15:31:55 UTC
(rev 14382)
+++ trunk/plugins/Echo/src/plugins/echo/Nodes.java 2007-07-27 15:45:41 UTC
(rev 14383)
@@ -49,6 +49,27 @@
}
/**
+ * Remove the index<sup>th</sup> node of the list
+ * @param index the index of the node to remove
+ * @return the index<sup>th</sup> node of the list, that was
removed
+ */
+ public Node remove(int index) {
+
+ return nodes.remove(index);
+
+ }
+
+ /**
+ * Returns the number of nodes in this list.
+ * @return the number of nodes in this list
+ */
+ public int size() {
+
+ return nodes.size();
+
+ }
+
+ /**
* Sorts the list by creation date of the nodes using the
CreationDateComparator.
*/
public void sortByCreationDate() {