activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r738946 - /activemq/trunk/kahadb/src/main/java/org/apache/kahadb/util/LinkedNode.java
Date Thu, 29 Jan 2009 18:10:03 GMT
Author: chirino
Date: Thu Jan 29 18:10:03 2009
New Revision: 738946

URL: http://svn.apache.org/viewvc?rev=738946&view=rev
Log:
Adding a handy getList() method to the LinkedNode impl

Modified:
    activemq/trunk/kahadb/src/main/java/org/apache/kahadb/util/LinkedNode.java

Modified: activemq/trunk/kahadb/src/main/java/org/apache/kahadb/util/LinkedNode.java
URL: http://svn.apache.org/viewvc/activemq/trunk/kahadb/src/main/java/org/apache/kahadb/util/LinkedNode.java?rev=738946&r1=738945&r2=738946&view=diff
==============================================================================
--- activemq/trunk/kahadb/src/main/java/org/apache/kahadb/util/LinkedNode.java (original)
+++ activemq/trunk/kahadb/src/main/java/org/apache/kahadb/util/LinkedNode.java Thu Jan 29
18:10:03 2009
@@ -212,11 +212,11 @@
     /**
      * Removes this node out of the linked list it is chained in.
      */
-    public void unlink() {
+    public boolean unlink() {
 
         // If we are allready unlinked...
         if (list == null) {
-            return;
+            return false;
         }
 
         if (getThis() == prev) {
@@ -233,6 +233,7 @@
         }
         list.size--;
         list = null;
+        return true;
     }
 
     /**
@@ -316,4 +317,8 @@
         return list != null;
     }
 
+	public LinkedNodeList<T> getList() {
+		return list;
+	}
+
 }



Mime
View raw message