Created
February 15, 2012 20:48
-
-
Save musketyr/1838901 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class StartSeach implements Node<SerialPipe, Collection<Haystack>> { | |
public NodeResult execute(SerialPipe pipe, Collection<HayStack> haystacks){ | |
return pipe.fork(FindNeedle.class, haystacks); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class StartSeach implements Node<ParallelPipe, Haystack> { | |
public NodeResult execute(ParallelPipe pipe, HayStack haystacks){ | |
// let's find the needle | |
return pipe.join(HaystackSearched.class, needleFound); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment