activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r515609 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/container/ContainerKeySet.java
Date Wed, 07 Mar 2007 15:33:51 GMT
Author: rajdavies
Date: Wed Mar  7 07:33:50 2007
New Revision: 515609

URL: http://svn.apache.org/viewvc?view=rev&rev=515609
Log:
added toString()

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/container/ContainerKeySet.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/container/ContainerKeySet.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/container/ContainerKeySet.java?view=diff&rev=515609&r1=515608&r2=515609
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/container/ContainerKeySet.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/container/ContainerKeySet.java
Wed Mar  7 07:33:50 2007
@@ -113,4 +113,15 @@
     public void clear(){
       container.clear();
     }
+    
+    public String toString() {
+        String result ="ContainerKeySet[";
+        IndexItem item = container.getInternalList().getRoot();
+        while ((item = container.getInternalList().getNextEntry(item)) != null) {
+            result += container.getKey(item);
+            result += ",";
+        }
+        result +="]";
+        return result;
+    }
 }



Mime
View raw message