|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object org.op4j.operators.impl.AbstractOperator org.op4j.operators.impl.fn.map.Level1MapEntriesSelectedOperator<I,K,V>
public final class Level1MapEntriesSelectedOperator<I,K,V>
Constructor Summary | |
---|---|
Level1MapEntriesSelectedOperator(Target target)
|
Method Summary | |
---|---|
Level1MapEntriesOperator<I,K,V> |
endIf()
Ends the selection currently active for this level. |
Level1MapEntriesSelectedOperator<I,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. |
Function<I,Map<K,V>> |
get()
Returns a function which will execute all the logic specified from the "Fn.on" expression. |
Level2MapEntriesSelectedKeyOperator<I,K,V> |
onKey()
Accesses the key of a map entry. |
Level2MapEntriesSelectedValueOperator<I,K,V> |
onValue()
Accesses the value of a map entry. |
Level1MapEntriesSelectedOperator<I,K,V> |
replaceWith(Map.Entry<K,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 |
---|
public Level1MapEntriesSelectedOperator(Target target)
Method Detail |
---|
public Level1MapEntriesOperator<I,K,V> endIf()
SelectedMapEntryOperator
Ends the selection currently active for this level.
endIf
in interface ILevel1MapEntriesSelectedOperator<I,K,V>
endIf
in interface SelectedMapEntryOperator<K,V>
public Level2MapEntriesSelectedKeyOperator<I,K,V> onKey()
NavigableMapEntryOperator
Accesses the key of a map entry. After the execution of this method, all subsequent operations will be performed on the map entry's key, until an "endOn()" method is executed.
onKey
in interface ILevel1MapEntriesSelectedOperator<I,K,V>
onKey
in interface NavigableMapEntryOperator
public Level2MapEntriesSelectedValueOperator<I,K,V> onValue()
NavigableMapEntryOperator
Accesses the value of a map entry. After the execution of this method, all subsequent operations will be performed on the map entry's value, until an "endOn()" method is executed.
onValue
in interface ILevel1MapEntriesSelectedOperator<I,K,V>
onValue
in interface NavigableMapEntryOperator
public Level1MapEntriesSelectedOperator<I,K,V> execAsMapEntry(IFunction<? super Map.Entry<K,V>,? extends Map.Entry<? extends K,? extends V>> function)
ExecutableMapEntrySelectedOperator
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).
execAsMapEntry
in interface ILevel1MapEntriesSelectedOperator<I,K,V>
execAsMapEntry
in interface ExecutableMapEntrySelectedOperator<K,V>
function
- the function to be executed
public Level1MapEntriesSelectedOperator<I,K,V> replaceWith(Map.Entry<K,V> replacement)
ReplaceableOperator
Replaces the current target object with the specified replacement.
replaceWith
in interface ILevel1MapEntriesSelectedOperator<I,K,V>
replaceWith
in interface ReplaceableOperator<Map.Entry<K,V>>
replacement
- the object which will replace the current target object.
public Function<I,Map<K,V>> get()
UniqFnOperator
Returns a function which will execute all the logic specified from the "Fn.on" expression.
get
in interface UniqFnOperator<I,Map<K,V>>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |