org.op4j.operators.qualities
Interface ExecutableMapSelectedOperator<K,V>

All Known Subinterfaces:
ILevel0MapSelectedOperator<I,K,V>
All Known Implementing Classes:
Level0MapSelectedOperator, Level0MapSelectedOperator

public interface ExecutableMapSelectedOperator<K,V>

This interface contains methods for executing functions on operators with map target objects on which a selection ("if") has already been done.

Since:
1.0
Author:
Daniel Fernández

Method Summary
 ExecutableMapSelectedOperator<K,V> execAsMap(IFunction<? super Map<K,V>,? extends Map<? extends K,? extends V>> function)
           Executes the specified function on the target object, creating a new map operator containing the result of the execution.
 

Method Detail

execAsMap

ExecutableMapSelectedOperator<K,V> execAsMap(IFunction<? super Map<K,V>,? extends Map<? extends K,? extends V>> function)

Executes the specified function on the target object, creating a new map operator containing the result of the execution.

This function does not allow the operator target type to change because a selection ("if") has already been done on the target objects, and this would render the operator inconsistent (some objects would belong to a type and others to another type).

Parameters:
function - the function to be executed
Returns:
an operator on the results of function execution


Copyright © 2012 The OP4J team. All Rights Reserved.