|
||||||||||
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.Level2MapEntriesSelectedKeyOperator<I,K,V>
public final class Level2MapEntriesSelectedKeyOperator<I,K,V>
Constructor Summary | |
---|---|
Level2MapEntriesSelectedKeyOperator(Target target)
|
Method Summary | |
---|---|
Level1MapEntriesSelectedOperator<I,K,V> |
endOn()
Stops the selection of key/value. |
Level2MapEntriesSelectedKeyOperator<I,K,V> |
exec(IFunction<? super K,? extends K> function)
Executes the specified function on the target object, creating a new 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. |
Level2MapEntriesSelectedKeySelectedOperator<I,K,V> |
ifFalse(IFunction<? super K,Boolean> eval)
Selects only those targets for which the specified evaluator returns false. |
Level2MapEntriesSelectedKeySelectedOperator<I,K,V> |
ifNotNull()
Selects only those targets which are not null. |
Level2MapEntriesSelectedKeySelectedOperator<I,K,V> |
ifNotNullAndFalse(IFunction<? super K,Boolean> eval)
|
Level2MapEntriesSelectedKeySelectedOperator<I,K,V> |
ifNotNullAndTrue(IFunction<? super K,Boolean> eval)
|
Level2MapEntriesSelectedKeySelectedOperator<I,K,V> |
ifNull()
Selects only those targets which are null. |
Level2MapEntriesSelectedKeySelectedOperator<I,K,V> |
ifNullOrFalse(IFunction<? super K,Boolean> eval)
|
Level2MapEntriesSelectedKeySelectedOperator<I,K,V> |
ifNullOrTrue(IFunction<? super K,Boolean> eval)
|
Level2MapEntriesSelectedKeySelectedOperator<I,K,V> |
ifTrue(IFunction<? super K,Boolean> eval)
Selects only those targets for which the specified evaluator returns true. |
Level2MapEntriesSelectedKeyOperator<I,K,V> |
replaceWith(K 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 Level2MapEntriesSelectedKeyOperator(Target target)
Method Detail |
---|
public Level2MapEntriesSelectedKeySelectedOperator<I,K,V> ifTrue(IFunction<? super K,Boolean> eval)
SelectableMapEntryComponentOperator
Selects only those targets for which the specified evaluator returns true. After this method, all the subsequently executed operations will only be executed on the target objects selected here, until an "endIf()" method is called.
ifTrue
in interface ILevel2MapEntriesSelectedKeyOperator<I,K,V>
ifTrue
in interface SelectableMapEntryComponentOperator<K>
eval
- the evaluator to be used for selecting targets.
public Level2MapEntriesSelectedKeySelectedOperator<I,K,V> ifFalse(IFunction<? super K,Boolean> eval)
SelectableMapEntryComponentOperator
Selects only those targets for which the specified evaluator returns false. After this method, all the subsequently executed operations will only be executed on the target objects selected here, until an "endIf()" method is called.
ifFalse
in interface ILevel2MapEntriesSelectedKeyOperator<I,K,V>
ifFalse
in interface SelectableMapEntryComponentOperator<K>
eval
- the evaluator to be used for selecting targets.
public Level2MapEntriesSelectedKeySelectedOperator<I,K,V> ifNull()
SelectableMapEntryComponentOperator
Selects only those targets which are null. After this method, all the subsequently executed operations will only be executed on the target objects selected here, until an "endIf()" method is called.
ifNull
in interface ILevel2MapEntriesSelectedKeyOperator<I,K,V>
ifNull
in interface SelectableMapEntryComponentOperator<K>
public Level2MapEntriesSelectedKeySelectedOperator<I,K,V> ifNotNull()
SelectableMapEntryComponentOperator
Selects only those targets which are not null. After this method, all the subsequently executed operations will only be executed on the target objects selected here, until an "endIf()" method is called.
ifNotNull
in interface ILevel2MapEntriesSelectedKeyOperator<I,K,V>
ifNotNull
in interface SelectableMapEntryComponentOperator<K>
public Level2MapEntriesSelectedKeySelectedOperator<I,K,V> ifNullOrFalse(IFunction<? super K,Boolean> eval)
ifNullOrFalse
in interface ILevel2MapEntriesSelectedKeyOperator<I,K,V>
public Level2MapEntriesSelectedKeySelectedOperator<I,K,V> ifNotNullAndFalse(IFunction<? super K,Boolean> eval)
ifNotNullAndFalse
in interface ILevel2MapEntriesSelectedKeyOperator<I,K,V>
public Level2MapEntriesSelectedKeySelectedOperator<I,K,V> ifNullOrTrue(IFunction<? super K,Boolean> eval)
ifNullOrTrue
in interface ILevel2MapEntriesSelectedKeyOperator<I,K,V>
public Level2MapEntriesSelectedKeySelectedOperator<I,K,V> ifNotNullAndTrue(IFunction<? super K,Boolean> eval)
ifNotNullAndTrue
in interface ILevel2MapEntriesSelectedKeyOperator<I,K,V>
public Level1MapEntriesSelectedOperator<I,K,V> endOn()
NavigatingMapEntryOperator
Stops the selection of key/value. After the execution of this method, all subsequent operations will be applied on the map entry as a whole instead of only on its key or value.
endOn
in interface ILevel2MapEntriesSelectedKeyOperator<I,K,V>
endOn
in interface NavigatingMapEntryOperator
public Level2MapEntriesSelectedKeyOperator<I,K,V> exec(IFunction<? super K,? extends K> function)
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).
exec
in interface ILevel2MapEntriesSelectedKeyOperator<I,K,V>
exec
in interface ExecutableSelectedOperator<K>
function
- the function to be executed
public Level2MapEntriesSelectedKeyOperator<I,K,V> replaceWith(K replacement)
ReplaceableOperator
Replaces the current target object with the specified replacement.
replaceWith
in interface ILevel2MapEntriesSelectedKeyOperator<I,K,V>
replaceWith
in interface ReplaceableOperator<K>
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 |