net.ericaro.neoitertools.generators
Class DropWhileGenerator<T>

java.lang.Object
  extended by net.ericaro.neoitertools.generators.DropWhileGenerator<T>
All Implemented Interfaces:
Generator<T>

public class DropWhileGenerator<T>
extends java.lang.Object
implements Generator<T>

Drops item while the condition is true, and then start to return them.

Author:
eric
See Also:
DropWhileGenerator's wiki page, neoitertools site

Constructor Summary
DropWhileGenerator(Lambda<T,java.lang.Boolean> predicate, Generator<T> source)
           
 
Method Summary
 T next()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DropWhileGenerator

public DropWhileGenerator(Lambda<T,java.lang.Boolean> predicate,
                          Generator<T> source)
Method Detail

next

public T next()
       throws java.util.NoSuchElementException
Specified by:
next in interface Generator<T>
Returns:
the next item in the sequence.
Throws:
java.util.NoSuchElementException - when sequence is exhausted.


Copyright © 2011. All Rights Reserved.