Skip to content
Snippets Groups Projects
Commit a4fd502f authored by Nelson Tavares de Sousa's avatar Nelson Tavares de Sousa
Browse files

added lowercase stage

parent 6b5b9b13
No related branches found
No related tags found
No related merge requests found
package teetime.stage.string;
import teetime.framework.AbstractConsumerStage;
import teetime.framework.OutputPort;
/**
* Receives a string and passes it on to the next stage only with lower case letters.
*
* @author Nelson Tavares de Sousa
*
*/
public class ToLowerCase extends AbstractConsumerStage<String> {
private final OutputPort<String> outputPort = this.createOutputPort();
@Override
protected void execute(final String element) {
outputPort.send(element.toLowerCase());
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment