Skip to content

Commit

Permalink
Add overloaded remove() method which does not rehash when called via …
Browse files Browse the repository at this point in the history
…iterator().remove(). Fixes eclipse#481

Signed-off-by: Nikhil Nanivadekar <nikhil.nanivadekar@gs.com>
  • Loading branch information
nikhilnanivadekar committed Mar 19, 2018
1 parent 57313b8 commit d569070
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ targetPath() ::= "org/eclipse/collections/impl/set/mutable/primitive"
fileName(primitive) ::= "<primitive.name>HashSetTest"

class(primitive) ::= <<
<body(primitive.type, primitive.wrapperName, primitive.name)>
<body(primitive.type, primitive.wrapperName, primitive.name, primitive.charPrimitive)>
>>

body(type, wrapperName, name) ::= <<
body(type, wrapperName, name, charPrimitive) ::= <<
<copyright()>

package org.eclipse.collections.impl.set.mutable.primitive;
Expand Down Expand Up @@ -187,7 +187,7 @@ public class <name>HashSetTest extends Abstract<name>SetTestCase
int max = 100_000;
for (Integer i = 0; i \< max; i++)
{
set.add(<wrapperName>.valueOf(i.toString()));
<if(charPrimitive)>set.add(i.toString().charAt(0));<else>set.add(i.<type>Value());<endif>
}

Mutable<name>Iterator iterator = set.<type>Iterator();
Expand Down

0 comments on commit d569070

Please sign in to comment.