1 19 package gnu.trove; 20 21 import java.util.ConcurrentModificationException ; 22 23 44 abstract class TPrimitiveIterator extends TIterator { 45 46 protected final TPrimitiveHash _hash; 47 48 51 public TPrimitiveIterator(TPrimitiveHash hash) { 52 super(hash); 53 _hash = hash; 54 } 55 56 64 protected final int nextIndex() { 65 if (_expectedSize != _hash.size()) { 66 throw new ConcurrentModificationException (); 67 } 68 69 byte[] states = _hash._states; 70 int i = _index; 71 while (i-- > 0 && (states[i] != TPrimitiveHash.FULL)) ; 72 return i; 73 } 74 75 } | Popular Tags |