You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mina.apache.org by tr...@apache.org on 2007/10/31 10:03:50 UTC

svn commit: r590598 - /mina/trunk/core/src/main/java/org/apache/mina/util/IdentityHashSet.java

Author: trustin
Date: Wed Oct 31 02:03:49 2007
New Revision: 590598

URL: http://svn.apache.org/viewvc?rev=590598&view=rev
Log:
Added more constructor to IdentityHashSet

Modified:
    mina/trunk/core/src/main/java/org/apache/mina/util/IdentityHashSet.java

Modified: mina/trunk/core/src/main/java/org/apache/mina/util/IdentityHashSet.java
URL: http://svn.apache.org/viewvc/mina/trunk/core/src/main/java/org/apache/mina/util/IdentityHashSet.java?rev=590598&r1=590597&r2=590598&view=diff
==============================================================================
--- mina/trunk/core/src/main/java/org/apache/mina/util/IdentityHashSet.java (original)
+++ mina/trunk/core/src/main/java/org/apache/mina/util/IdentityHashSet.java Wed Oct 31 02:03:49 2007
@@ -33,6 +33,10 @@
     public IdentityHashSet() {
         super(new IdentityHashMap<E, Boolean>());
     }
+    
+    public IdentityHashSet(int expectedMaxSize) {
+        super(new IdentityHashMap<E, Boolean>(expectedMaxSize));
+    }
 
     public IdentityHashSet(Collection<E> c) {
         super(new IdentityHashMap<E, Boolean>(), c);