/*
(non-Javadoc)

@see java.util.Iterator#hasNext()
773070
@Override
    public boolean hasNext()
    {
        if (checkOnFetchSize())
        {
            onCheckRelation();
            if (!checkOnEmptyResult())
            {
                scrollComplete = true;
                return false;
            }
            return true;
        }
        return false;
    }
1355247
public boolean hasNext()
    {
        while (_list.hasMoreTokens() && (_current.length() == 0))
        {
            _current = _list.nextToken();
        }
        return (_current.length() > 0);
    }
890244
public boolean hasNext()
  {
    if (tc.isEntryEnabled()) 
      SibTr.entry(tc, "hasNext");
    
    boolean hasNext = false;
    if (anycastIHIterator != null)
    {  
      hasNext = anycastIHIterator.hasNext();
    }
    
    if (tc.isEntryEnabled()) 
      SibTr.exit(tc, "hasNext", new Boolean(hasNext));
    return hasNext;
  }
387650
public boolean hasNext() {
		if(cachedNext != null) return true;
		while(itr.hasNext()) {
			S o = itr.next();
			T adapted = adapter.adapt(o);
			if(adapted != null) {
				cachedNext = adapted;
				return true;
			}
		}
		return false;
	}
469029
@Override
  public boolean hasNext() {
    if (!peekingIterator.hasNext()) {
      return false;
    }
    DirectionalRecord record = peekingIterator.peek();
    if (record.noResponseRecord) {
      // TODO: log as this is unsupported
      peekingIterator.next();
    }
    return true;
  }
586753
public function hasNext(): bool
    {
        return !empty($this->entries) && ($this->getStartIndex() + $this->getItemsPerPage() - 1 < $this->getTotalResults());
    }
725789
public boolean hasNext()
	{

		try {
			switch (modus) {
			case INIT:
				return queryArticle();

			case ITERATE_WITH_MAPPING:
				if (chronoIterator.hasNext()) {
					return true;
				}

				reset();

				if (resultArticles.next()) {

					this.currentArticleID = resultArticles.getInt(1);
					return (this.lastArticleID == -1)
							|| (this.currentArticleID <= this.lastArticleID);
				}

				resultArticles.close();
				return queryArticle();

			case ITERATE_WITHOUT_MAPPING:

				if (revisionIterator.hasNext()) {
					return true;
				}

				reset();

				if (resultArticles.next()) {

					this.currentArticleID = resultArticles.getInt(1);
					return (this.lastArticleID == -1)
							|| (this.currentArticleID <= this.lastArticleID);
				}

				resultArticles.close();
				return queryArticle();

			default:
				throw new RuntimeException("Illegal mode");
			}

		}
		catch (SQLException e) {
			throw new RuntimeException(e);
		}
	}
1011278
@Override
	public boolean hasNext() {
		try {
			return hasNextThrow();
		} catch (SQLException e) {
			last = null;
			closeQuietly();
			// unfortunately, can't propagate back the SQLException
			throw new IllegalStateException("Errors getting more results of " + dataClass, e);
		}
	}
1317526
public boolean hasNextEvent() throws IOException {
        /* In Fasterxml parser, hasNextEvent will consume next token. So do not call it multiple times. */
        JsonToken nextToken = jsonParser.nextToken();
        return nextToken == JsonToken.START_OBJECT || nextToken == JsonToken.START_ARRAY;
    }
921465
public static boolean has(String text){
        for(char c : text.toCharArray()){
            if(is(c)){
                return true;
            }
        }
        return false;
    }
35425
public boolean hasNext() throws SISessionUnavailableException, SISessionDroppedException, SIIncorrectCallException
  {
    if (TraceComponent.isAnyTracingEnabled() && CoreSPILockedMessageEnumeration.tc.isEntryEnabled())
      SibTr.entry(CoreSPILockedMessageEnumeration.tc, "hasNext", this);
          
    checkValidState("hasNext");
          
    _localConsumerPoint.checkNotClosed();
    
    boolean hasNext = false;
    
    if(!_seenSingleMessage)
    {
      hasNext = true;
    }
    
    if (TraceComponent.isAnyTracingEnabled() && CoreSPILockedMessageEnumeration.tc.isEntryEnabled())
      SibTr.exit(CoreSPILockedMessageEnumeration.tc, "hasNext", new Boolean(hasNext));    
      
    return hasNext;
  }
472963
@Override
    public boolean hasNext(int startPosition, int contentLength) {
        char ch = nextGoodChar();
        if (ch == ',') return true;
        if (ch == '}' || ch == ']' || ch == 0) return false;
        backChar(ch); // { [ 交由 readObjectB 或 readMapB 或 readArrayB 读取
        return true;
    }
1201465
public boolean hasNext() {
        // check if we already fetched next item
        if (next != null) {
            return true;
        }

        // check if result set already finished
        if (resultSetFinished) {
            return false;
        }

        // now fetch next item
        next = safeReadNext();

        // check if we got something
        if (next != null) {
            return true;
        }

        // no more items
        resultSetFinished = true;

        return false;
    }
265192
@Override
    public boolean hasNext() {
        if(next != null){
            return true;
        }
        if(!recordReader.hasNext()){
            return false;
        }

        //Prefetch, until we find one that isn't filtered out - or we run out of data
        while(next == null && recordReader.hasNext()){
            Record r = recordReader.nextRecord();
            List<Writable> temp = transformProcess.execute(r.getRecord());
            if(temp == null){
                continue;
            }
            next = new org.datavec.api.records.impl.Record(temp, r.getMetaData());
        }

        return next != null;
    }
782574
public boolean hasNext () {
	while (_next == null && _ds.hasNext())
	    _next = createEvent((String)_ds.nextToken());
	return _next != null;
    }
794844
public boolean hasNext() {
		if(next != null) {
			return true;
		}
		// find lowest next:
		PeekableIterator<E> nextSource = null;
		for(int i = 0; i < components.size(); i++) {
			PeekableIterator<E> pi = components.get(i);
			if(pi.hasNext()) {
				E piNext = pi.peekNext();
				if((next == null) || (comparator.compare(next,piNext) > 0)) {
					nextSource = pi;
					next = piNext;
				}
			}
		}
		if(nextSource != null) {
			nextSource.next();
		}
		return next != null;
	}
583321
public boolean next() throws IOException {
		boolean hasNext = true;
		try {
			oldId = stream.readInt();
			oldText = stream.readUTFAsArray();
		} catch (EOFException e) {
			hasNext = false;
		}
		return hasNext;
	}