pl.clareo.coroutines.user
Class ExitOnYieldedEqualsTo<E>

java.lang.Object
  extended by pl.clareo.coroutines.user.ExitOnYieldedEqualsTo<E>
All Implemented Interfaces:
ExitCondition<E>

public class ExitOnYieldedEqualsTo<E>
extends java.lang.Object
implements ExitCondition<E>


Constructor Summary
ExitOnYieldedEqualsTo(E e)
           
 
Method Summary
 boolean exit(E yielded)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExitOnYieldedEqualsTo

public ExitOnYieldedEqualsTo(E e)
Method Detail

exit

public boolean exit(E yielded)
Specified by:
exit in interface ExitCondition<E>
Parameters:
yielded - last returned value
Returns:
true if no more results, produced by coroutine, are needed, false otherwise


Copyright © 2010 CLAREO. All Rights Reserved.