org.op4j.operators.impl.op.map
Class Level2MapSelectedEntriesSelectedValueSelectedOperator<I,K,V>

Object
  extended by org.op4j.operators.impl.AbstractOperator
      extended by org.op4j.operators.impl.op.map.Level2MapSelectedEntriesSelectedValueSelectedOperator<I,K,V>
All Implemented Interfaces:
ILevel2MapSelectedEntriesSelectedValueSelectedOperator<I,K,V>, ExecutableSelectedOperator<V>, Operator, ReplaceableOperator<V>, SelectedMapEntryComponentOperator<V>, UniqOperator<Map<K,V>>, UniqOpOperator<I,Map<K,V>>

public final class Level2MapSelectedEntriesSelectedValueSelectedOperator<I,K,V>
extends AbstractOperator
implements UniqOpOperator<I,Map<K,V>>, ILevel2MapSelectedEntriesSelectedValueSelectedOperator<I,K,V>


Constructor Summary
Level2MapSelectedEntriesSelectedValueSelectedOperator(Target target)
           
 
Method Summary
 Level2MapSelectedEntriesSelectedValueOperator<I,K,V> endIf()
           Ends the selection currently active for this level.
 Level2MapSelectedEntriesSelectedValueSelectedOperator<I,K,V> exec(IFunction<? super V,? extends V> function)
           Executes the specified function on the target object, creating a new operator containing the result of the execution.
 Map<K,V> get()
           Returns the target object this operator currently holds.
 Level2MapSelectedEntriesSelectedValueSelectedOperator<I,K,V> replaceWith(V replacement)
           Replaces the current target object with the specified replacement.
 
Methods inherited from class org.op4j.operators.impl.AbstractOperator
getTarget
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Level2MapSelectedEntriesSelectedValueSelectedOperator

public Level2MapSelectedEntriesSelectedValueSelectedOperator(Target target)
Method Detail

endIf

public Level2MapSelectedEntriesSelectedValueOperator<I,K,V> endIf()
Description copied from interface: SelectedMapEntryComponentOperator

Ends the selection currently active for this level.

Specified by:
endIf in interface ILevel2MapSelectedEntriesSelectedValueSelectedOperator<I,K,V>
Specified by:
endIf in interface SelectedMapEntryComponentOperator<V>
Returns:
an operator which will execute all subsequent operations on all the target objects instead of only on the previously selected ones.

exec

public Level2MapSelectedEntriesSelectedValueSelectedOperator<I,K,V> exec(IFunction<? super V,? extends V> function)
Description copied from interface: ExecutableSelectedOperator

Executes the specified function on the target object, creating a new 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).

Specified by:
exec in interface ILevel2MapSelectedEntriesSelectedValueSelectedOperator<I,K,V>
Specified by:
exec in interface ExecutableSelectedOperator<V>
Parameters:
function - the function to be executed
Returns:
an operator on the results of function execution

replaceWith

public Level2MapSelectedEntriesSelectedValueSelectedOperator<I,K,V> replaceWith(V replacement)
Description copied from interface: ReplaceableOperator

Replaces the current target object with the specified replacement.

Specified by:
replaceWith in interface ILevel2MapSelectedEntriesSelectedValueSelectedOperator<I,K,V>
Specified by:
replaceWith in interface ReplaceableOperator<V>
Parameters:
replacement - the object which will replace the current target object.
Returns:
an operator containing the replacement object as target.

get

public Map<K,V> get()
Description copied from interface: UniqOpOperator

Returns the target object this operator currently holds.

Specified by:
get in interface UniqOpOperator<I,Map<K,V>>
Returns:
the target object.


Copyright © 2012 The OP4J team. All Rights Reserved.