All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aol.cyclops.matcher.builders.CollectionStep Maven / Gradle / Ivy

There is a newer version: 7.2.4
Show newest version
package com.aol.cyclops.matcher.builders;

import com.aol.cyclops.matcher.Action;
import com.aol.cyclops.matcher.TypedFunction;

public interface CollectionStep {

	/**
	 * Create a new Case with the supplied ActionWithReturn as the action
	 * 
	 * @param t Action to be executed when the new Case is triggered
	 * @return Pattern Matcher Builder
	 */
	 CollectionMatchingInstance thenApply(TypedFunction t);
	/**
	 * Create a new Case with the supplied ActionWithReturn as the action
	 * 
	 * @param t Action to be executed when the new Case is triggered
	 * @return Pattern Matcher Builder
	 */
	default CollectionMatchingInstance thenConsume(Action t){
		return thenApply(new ActionWithReturnWrapper(t));
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy