Documentation of 'org.apache.commons.compress.utils.Iterators' Java class
Iterators
org.apache.commons.compress.utils

Class Iterators



  • public class Iterators
    extends java.lang.Object
    Iterator utilities.
    Since:
    1.13.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static <T> boolean addAll(java.util.Collection<T> collection, java.util.Iterator<? extends T> iterator)
      Adds all the elements in the source iterator to the target collection.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • addAll

        public static <T> boolean addAll(java.util.Collection<T> collection,
                                         java.util.Iterator<? extends T> iterator)
        Adds all the elements in the source iterator to the target collection.

        When this method returns, the iterator will be "empty": its hasNext() method returns false.

        Type Parameters:
        T - type of the elements contained inside the collection
        Parameters:
        collection - target collection
        iterator - source
        Returns:
        true if the target collection was modified as a result of this operation

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.