de.schlichtherle.truezip.util
Class JointIterator<E>
java.lang.Object
de.schlichtherle.truezip.util.JointIterator<E>
- All Implemented Interfaces:
- Iterator<E>
@NotThreadSafe
public final class JointIterator<E>
- extends Object
- implements Iterator<E>
An iterator which concatenates the elements of two other iterators.
- Author:
- Christian Schlichtherle
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
i1
private Iterator<? extends E> i1
i2
private Iterator<? extends E> i2
JointIterator
public JointIterator(Iterator<? extends E> i1,
Iterator<? extends E> i2)
- Constructs a new
JointIterator from the given iterators.
- Parameters:
i1 - the first iterator.i2 - the second iterator.
- Throws:
NullPointerException - if any parameter is null.
JointIterator
public JointIterator(Iterable<? extends E> i1,
Iterable<? extends E> i2)
- Constructs a new
JointIterator from the given iterables.
- Parameters:
i1 - the first iterable.i2 - the second iterable.
- Throws:
NullPointerException - if any parameter is null.
hasNext
public boolean hasNext()
- Specified by:
hasNext in interface Iterator<E>
next
public E next()
- Specified by:
next in interface Iterator<E>
remove
public void remove()
- Specified by:
remove in interface Iterator<E>
Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.