Java Iterator hasNexts(List> heads)

Here you can find the source of hasNexts(List> heads)

Description

has Nexts

License

EUPL

Declaration

private static <T> boolean hasNexts(List<Iterator<T>> heads) 

Method Source Code

//package com.java2s;
// This program is dual-licensed under the EUPL v1.2 and AGPLv3 licenses.

import java.util.Iterator;
import java.util.List;

public class Main {
    private static <T> boolean hasNexts(List<Iterator<T>> heads) {
        return heads.stream().anyMatch(Iterator::hasNext);
    }/*from w  w  w.  j av  a 2s . co m*/
}

Related

  1. getIteratorEnumeration(final Iterator i)
  2. getObjectAtIteratorPos(Iterator i, int pos)
  3. hasNext(final Iterator i)
  4. hasNext(final Iterator it)
  5. hasNextIteration(final Iterator iterator)
  6. hasOpenIteratorsRequiringOpenConnection()
  7. hex(Iterator it)
  8. implode(Iterator it)
  9. isBlank(Iterator iterator)