@Override public void removeFirst() { stateCount++; Object item = firstItem; map.get(firstItem).unlinkSelf(); map.remove(item); }
@Override public void removeLast() { stateCount++; Object item = lastItem; map.get(lastItem).unlinkSelf(); map.remove(item); }
@Override public void remove() throws IllegalStateException { if (stateCount != iteratorStateCount) { throw new ConcurrentModificationException(); } stateCount++; iteratorStateCount++; if (!state) { throw new IllegalStateException(); } else { currentLink.unlinkSelf(); map.remove(currentLink.getItem()); state = false; } }
public void remove() throws IllegalStateException { if(stateCount != iteratorStateCount) throw new ConcurrentModificationException(); stateCount++; iteratorStateCount++; if(!state) throw new IllegalStateException(); else { currentLink.unlinkSelf(); map.remove(currentLink.getItem()); state = false; HashChain.this.objectIndexes = null; // RoboVM note: Added } }
public void remove() throws IllegalStateException { if(stateCount != iteratorStateCount) throw new ConcurrentModificationException(); stateCount++; iteratorStateCount++; if(!state) throw new IllegalStateException(); else { currentLink.unlinkSelf(); map.remove(currentLink.getItem()); state = false; HashChain.this.objectIndexes = null; // RoboVM note: Added } }
public void removeLast() { stateCount++; Object item = lastItem; map.get(lastItem).unlinkSelf(); map.remove(item); objectIndexes = null; // RoboVM note: Added }
public void removeLast() { stateCount++; Object item = lastItem; map.get(lastItem).unlinkSelf(); map.remove(item); objectIndexes = null; // RoboVM note: Added }
public void removeFirst() { stateCount++; Object item = firstItem; map.get(firstItem).unlinkSelf(); map.remove(item); objectIndexes = null; // RoboVM note: Added }
public void removeFirst() { stateCount++; Object item = firstItem; map.get(firstItem).unlinkSelf(); map.remove(item); objectIndexes = null; // RoboVM note: Added }