jwutil.collections
Class AppendIterator

java.lang.Object
  extended by jwutil.collections.AppendIterator
All Implemented Interfaces:
java.util.Iterator

public class AppendIterator
extends java.lang.Object
implements java.util.Iterator

Constructs a new iterator that appends two given iterators.

Version:
$Id: AppendIterator.java 1934 2004-09-27 22:42:35Z joewhaley $
Author:
John Whaley

Constructor Summary
AppendIterator(java.util.Iterator iter1, java.util.Iterator iter2)
          Given two iterators, creates a new AppendIterator.
 
Method Summary
 boolean hasNext()
           
 java.lang.Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppendIterator

public AppendIterator(java.util.Iterator iter1,
                      java.util.Iterator iter2)
Given two iterators, creates a new AppendIterator.

Parameters:
iter1 - first iterator
iter2 - second iterator
Method Detail

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

remove

public void remove()
Specified by:
remove in interface java.util.Iterator


Copyright © 2004-2008 SUIF Compiler Group. All Rights Reserved.