public void remove() { if(currentIsNull) { GfshResultsBag.this.numNulls = 0; } else { it.remove(); } } };
public void remove() { if(currentIsNull) { ResultsBag.this.numNulls = 0; } else { it.remove(); } } };
public void remove() { // if (this.currentDup == 0) { // // next has not yet been called // throw new IllegalStateException(LocalizedStrings.ResultsBag_NEXT_MUST_BE_CALLED_BEFORE_REMOVE.toLocalizedString()); // } this.dupLimit--; assert this.dupLimit >= 0 : this.dupLimit; if (this.current == null) { GfshResultsBag.this.numNulls = this.dupLimit; assert GfshResultsBag.this.numNulls >= 0 : GfshResultsBag.this.numNulls; } else { if (this.dupLimit > 0) { this.mapIterator.setValue(this.dupLimit); } else { this.mapIterator.remove(); } } GfshResultsBag.this.size--; this.currentDup--; assert GfshResultsBag.this.size >= 0 : GfshResultsBag.this.size; assert this.currentDup >= 0 : this.currentDup; } }
public void remove() { if (this.currentDup == 0) { // next has not yet been called throw new IllegalStateException(LocalizedStrings.ResultsBag_NEXT_MUST_BE_CALLED_BEFORE_REMOVE.toLocalizedString()); } this.dupLimit--; assert this.dupLimit >= 0 : this.dupLimit; if (this.currentKey == null) { ResultsBag.this.numNulls = this.dupLimit; assert ResultsBag.this.numNulls >= 0 : ResultsBag.this.numNulls; } else { if (this.dupLimit > 0) { ResultsBag.this.map.put(this.currentKey, this.dupLimit); } else { this.mapIterator.remove(); } } ResultsBag.this.size--; this.currentDup--; assert ResultsBag.this.size >= 0 : ResultsBag.this.size; assert this.currentDup >= 0 : this.currentDup; } }