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

All Known Subinterfaces:
ILevel1MapEntriesSelectedOperator<I,K,V>, ILevel1MapSelectedEntriesOperator<I,K,V>, ILevel1MapSelectedEntriesSelectedOperator<I,K,V>
All Known Implementing Classes:
Level1MapEntriesSelectedOperator, Level1MapEntriesSelectedOperator, Level1MapSelectedEntriesOperator, Level1MapSelectedEntriesOperator, Level1MapSelectedEntriesSelectedOperator, Level1MapSelectedEntriesSelectedOperator

public interface ExecutableMapEntrySelectedOperator<K,V>

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

Since:
1.0
Author:
Daniel Fernández

Method Summary
 ExecutableMapEntrySelectedOperator<K,V> execAsMapEntry(IFunction<? super Map.Entry<K,V>,? extends Map.Entry<? extends K,? extends V>> function)
           Executes the specified function on the target mape entry, creating a new map entry operator containing the result of the execution.
 

Method Detail

execAsMapEntry

ExecutableMapEntrySelectedOperator<K,V> execAsMapEntry(IFunction<? super Map.Entry<K,V>,? extends Map.Entry<? extends K,? extends V>> function)

Executes the specified function on the target mape entry, creating a new map entry 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.