All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.nikita_volkov.java.iterables.AppendingIterable Maven / Gradle / Ivy

package com.github.nikita_volkov.java.iterables;

import com.github.nikita_volkov.java.iterators.AppendingIterator;

import java.util.Iterator;

public final class AppendingIterable implements Iterable {

  private final Iterable iterable1;
  private final Iterable iterable2;

  public AppendingIterable(Iterable iterable1, Iterable iterable2) {
    this.iterable1 = iterable1;
    this.iterable2 = iterable2;
  }

  @Override
  public Iterator iterator() {
    return new AppendingIterator<>(iterable1.iterator(), iterable2.iterator());
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy