core/src/main/java/com/orientechnologies/orient/core/index/OIndexChangesWrapper.java
@Override
  public boolean hasNext() {
    if (source.isRebuilding())
      throwRebuildException();

    final boolean isNext = delegate.hasNext();

    if (source.getRebuildVersion() != indexRebuildVersion)
      throwRebuildException();

    return isNext;
  }
@Override
  public boolean hasNext() {
    if (source.isRebuilding())
      throwRebuildException();

    final boolean isNext = delegate.hasNext();

    if (source.getRebuildVersion() != indexRebuildVersion)
      throwRebuildException();

    return isNext;
  }
@ Override public boolean hasNext ( ) { if ( source . isRebuilding ( ) ) throwRebuildException ( ) ; final boolean isNext = delegate . hasNext ( ) ; if ( source . getRebuildVersion ( ) != indexRebuildVersion ) throwRebuildException ( ) ; return isNext ; }
{@inheritDoc}
{