@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}
{