[jboss-svn-commits] JBoss Common SVN: r3951 - common-core/trunk/src/main/java/org/jboss/util/collection.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Fri Jan 22 11:07:56 EST 2010


Author: alesj
Date: 2010-01-22 11:07:56 -0500 (Fri, 22 Jan 2010)
New Revision: 3951

Modified:
   common-core/trunk/src/main/java/org/jboss/util/collection/CollectionsFactory.java
   common-core/trunk/src/main/java/org/jboss/util/collection/ConcurrentReferenceHashSet.java
   common-core/trunk/src/main/java/org/jboss/util/collection/ConcurrentSet.java
Log:
javadocs, helper method

Modified: common-core/trunk/src/main/java/org/jboss/util/collection/CollectionsFactory.java
===================================================================
--- common-core/trunk/src/main/java/org/jboss/util/collection/CollectionsFactory.java	2010-01-22 16:01:40 UTC (rev 3950)
+++ common-core/trunk/src/main/java/org/jboss/util/collection/CollectionsFactory.java	2010-01-22 16:07:56 UTC (rev 3951)
@@ -115,4 +115,15 @@
    {
       return new ConcurrentSet<T>();
    }
+
+   /**
+    * Defines the concurrent reference set implementation
+    *
+    * @param <T> the type
+    * @return the set
+    */
+   public static final <T> Set<T> createConcurrentReferenceSet()
+   {
+      return new ConcurrentReferenceHashSet<T>();
+   }
 }

Modified: common-core/trunk/src/main/java/org/jboss/util/collection/ConcurrentReferenceHashSet.java
===================================================================
--- common-core/trunk/src/main/java/org/jboss/util/collection/ConcurrentReferenceHashSet.java	2010-01-22 16:01:40 UTC (rev 3950)
+++ common-core/trunk/src/main/java/org/jboss/util/collection/ConcurrentReferenceHashSet.java	2010-01-22 16:07:56 UTC (rev 3951)
@@ -25,7 +25,7 @@
 import java.util.Set;
 
 /**
- * ConcurrentSet based on top of ConcurrentReferenceHashMap.
+ * Set based on top of ConcurrentReferenceHashMap.
  * It's serializable if the elements are serializable.
  *
  * @author <a href="ales.justin at jboss.org">Ales Justin</a>

Modified: common-core/trunk/src/main/java/org/jboss/util/collection/ConcurrentSet.java
===================================================================
--- common-core/trunk/src/main/java/org/jboss/util/collection/ConcurrentSet.java	2010-01-22 16:01:40 UTC (rev 3950)
+++ common-core/trunk/src/main/java/org/jboss/util/collection/ConcurrentSet.java	2010-01-22 16:07:56 UTC (rev 3951)
@@ -26,7 +26,7 @@
 import java.util.concurrent.ConcurrentHashMap;
 
 /**
- * ConcurrentSet based on top of ConcurrenthashMap.
+ * Concurrent Set based on top of ConcurrentHashMap.
  * It's serializable if the elements are serializable.
  *
  * @param <E> the element type



More information about the jboss-svn-commits mailing list