com.waveset.adapter
Class AccountIteratorWrapper

java.lang.Object
  extended bycom.waveset.adapter.AccountIteratorWrapper
All Implemented Interfaces:
AccountIterator

Deprecated. as of 7.0, for iteration of block-oriented streams of accounts consider using the Supplier and BufferedAccountQueue classes instead.

public class AccountIteratorWrapper
extends java.lang.Object
implements AccountIterator

Simple wrapper around a source iterator to conform to the AccountIterator interface. The source iterator is expected to produce WSUser objects if that is not the case there will be a ClassCastException thrown.

See Also:
Supplier, BufferedAccountQueue

Field Summary
static java.lang.String CLASS
          Deprecated.  
 
Fields inherited from interface com.waveset.adapter.AccountIterator
code_id
 
Constructor Summary
AccountIteratorWrapper(java.util.Iterator iter)
          Deprecated. Wrapper to support ResourceAdapter's inteface method that returns AccountIterator.
 
Method Summary
 void close()
          Deprecated.  
 boolean hasNext()
          Deprecated.  
 WSUser next()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS

public static final java.lang.String CLASS
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

AccountIteratorWrapper

public AccountIteratorWrapper(java.util.Iterator iter)
Deprecated. 
Wrapper to support ResourceAdapter's inteface method that returns AccountIterator.

Method Detail

hasNext

public boolean hasNext()
                throws WavesetException
Deprecated. 
Specified by:
hasNext in interface AccountIterator
Throws:
WavesetException

next

public WSUser next()
            throws java.util.NoSuchElementException,
                   WavesetException
Deprecated. 
Specified by:
next in interface AccountIterator
Returns:
the next account

Throws:
java.util.NoSuchElementException
WavesetException

close

public void close()
Deprecated. 
Specified by:
close in interface AccountIterator