entity-store/src/main/kotlin/jetbrains/exodus/entitystore/iterate/binop/MinusIterable.kt [80:109]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - override fun hasNextImpl(): Boolean { var currentMinuend = currentMinuend var currentSubtrahend = currentSubtrahend while (currentMinuend !== PersistentEntityId.EMPTY_ID) { if (currentMinuend == null) { currentMinuend = checkNextId(minuend) this.currentMinuend = currentMinuend } if (currentSubtrahend == null) { currentSubtrahend = checkNextId(subtrahend) this.currentSubtrahend = currentSubtrahend } // no more ids in minuend if (currentMinuend.also { nextId = it } === PersistentEntityId.EMPTY_ID) { break } // no more ids subtrahend if (currentSubtrahend === PersistentEntityId.EMPTY_ID) { currentMinuend = null break } if (currentMinuend !== currentSubtrahend && (currentMinuend == null || currentSubtrahend == null)) { break } if (currentMinuend === currentSubtrahend) { currentSubtrahend = null currentMinuend = null continue } val cmp = currentMinuend?.compareTo(currentSubtrahend) ?: throw throw IllegalStateException("Can't be") - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - entity-store/src/main/kotlin/jetbrains/exodus/entitystore/iterate/binop/MinusIterable.kt [135:164]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - override fun hasNextImpl(): Boolean { var currentMinuend = currentMinuend var currentSubtrahend = currentSubtrahend while (currentMinuend !== PersistentEntityId.EMPTY_ID) { if (currentMinuend == null) { currentMinuend = checkNextId(minuend) this.currentMinuend = currentMinuend } if (currentSubtrahend == null) { currentSubtrahend = checkNextId(subtrahend) this.currentSubtrahend = currentSubtrahend } // no more ids in minuend if (currentMinuend.also { nextId = it } === PersistentEntityId.EMPTY_ID) { break } // no more ids subtrahend if (currentSubtrahend === PersistentEntityId.EMPTY_ID) { currentMinuend = null break } if (currentMinuend !== currentSubtrahend && (currentMinuend == null || currentSubtrahend == null)) { break } if (currentMinuend === currentSubtrahend) { currentSubtrahend = null currentMinuend = null continue } val cmp = currentMinuend?.compareTo(currentSubtrahend) ?: throw throw IllegalStateException("Can't be") - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -