|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExecutableMapEntryOperator<K,V>
This interface contains methods for executing functions on operators with map entry target objects.
Method Summary | ||
---|---|---|
|
exec(IFunction<? super Map.Entry<K,V>,X> function)
Executes the specified function on the target map entry, creating a new generic operator containing the result of the execution and setting the new operator type to the one specified. |
|
|
execAsMapEntry(IFunction<? super Map.Entry<K,V>,? extends Map.Entry<X,Y>> function)
Executes the specified function on the target object, creating a new map entry operator containing the result of the execution. |
|
ExecutableMapEntryOperator<K,V> |
execIfFalseAsMapEntry(IFunction<? super Map.Entry<K,V>,Boolean> eval,
IFunction<? super Map.Entry<K,V>,? extends Map.Entry<? extends K,? extends V>> function)
Executes a function in a way equivalent to execAsMapEntry(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
|
execIfFalseAsMapEntry(IFunction<? super Map.Entry<K,V>,Boolean> eval,
IFunction<? super Map.Entry<K,V>,? extends Map.Entry<X,Y>> function,
IFunction<? super Map.Entry<K,V>,? extends Map.Entry<X,Y>> elseFunction)
Executes a function in a way equivalent to execAsMapEntry(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
ExecutableMapEntryOperator<K,V> |
execIfTrueAsMapEntry(IFunction<? super Map.Entry<K,V>,Boolean> eval,
IFunction<? super Map.Entry<K,V>,? extends Map.Entry<? extends K,? extends V>> function)
Executes a function in a way equivalent to execAsMapEntry(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
|
execIfTrueAsMapEntry(IFunction<? super Map.Entry<K,V>,Boolean> eval,
IFunction<? super Map.Entry<K,V>,? extends Map.Entry<X,Y>> function,
IFunction<? super Map.Entry<K,V>,? extends Map.Entry<X,Y>> elseFunction)
Executes a function in a way equivalent to execAsMapEntry(IFunction) but only
on selected elements, leaving all other elements untouched. |
Method Detail |
---|
<X,Y> ExecutableMapEntryOperator<X,Y> execAsMapEntry(IFunction<? super Map.Entry<K,V>,? extends Map.Entry<X,Y>> function)
Executes the specified function on the target object, creating a new map entry operator containing the result of the execution.
This function must be able to take as input an object of the current operator's target type, and will return an object of a different type but same structure, which will be from then on the new operator's target type.
X
- the type of the resulting keysY
- the type of the resulting valuesfunction
- the function to be executed
<X> Operator exec(IFunction<? super Map.Entry<K,V>,X> function)
Executes the specified function on the target map entry, creating a new generic operator containing the result of the execution and setting the new operator type to the one specified.
X
- the type of the result objectfunction
- the function to be executed
ExecutableMapEntryOperator<K,V> execIfTrueAsMapEntry(IFunction<? super Map.Entry<K,V>,Boolean> eval, IFunction<? super Map.Entry<K,V>,? extends Map.Entry<? extends K,? extends V>> function)
Executes a function in a way equivalent to execAsMapEntry(IFunction)
but only
on selected elements, leaving all other elements untouched.
eval
- the evaluation function used to select elementsfunction
- the function to be executed on the selected elements
ExecutableMapEntryOperator<K,V> execIfFalseAsMapEntry(IFunction<? super Map.Entry<K,V>,Boolean> eval, IFunction<? super Map.Entry<K,V>,? extends Map.Entry<? extends K,? extends V>> function)
Executes a function in a way equivalent to execAsMapEntry(IFunction)
but only
on selected elements, leaving all other elements untouched.
eval
- the evaluation function used to select elementsfunction
- the function to be executed on the selected elements
<X,Y> ExecutableMapEntryOperator<X,Y> execIfTrueAsMapEntry(IFunction<? super Map.Entry<K,V>,Boolean> eval, IFunction<? super Map.Entry<K,V>,? extends Map.Entry<X,Y>> function, IFunction<? super Map.Entry<K,V>,? extends Map.Entry<X,Y>> elseFunction)
Executes a function in a way equivalent to execAsMapEntry(IFunction)
but only
on selected elements, leaving all other elements untouched.
X
- the new type of the keys returned by the functionsY
- the new type of the values returned by the functionseval
- the evaluation function used to select elementsfunction
- the function to be executed on the selected elementselseFunction
- the function to be executed on the non-selected elements
<X,Y> ExecutableMapEntryOperator<X,Y> execIfFalseAsMapEntry(IFunction<? super Map.Entry<K,V>,Boolean> eval, IFunction<? super Map.Entry<K,V>,? extends Map.Entry<X,Y>> function, IFunction<? super Map.Entry<K,V>,? extends Map.Entry<X,Y>> elseFunction)
Executes a function in a way equivalent to execAsMapEntry(IFunction)
but only
on selected elements, leaving all other elements untouched.
X
- the new type of the keys returned by the functionsY
- the new type of the values returned by the functionseval
- the evaluation function used to select elementsfunction
- the function to be executed on the selected elementselseFunction
- the function to be executed on the non-selected elements
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |