X ChainedHashSet.clear() doesn't work!!
Brought to you by:
bak
This simple code show the IntChainedHashSet.clear(), LongChainedHashSet.clear() (etc) are not implemented correctly:
IntSet s = new IntChainedHashSet();
s.add(33);
s.clear();
System.out.println(s); //WTF???!!
System.out.println(s.iterator().hasNext());//WTF???!!
boolean b = s.add(33);
System.out.println(b); //WTF???!!