|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectorg.op4j.operators.impl.AbstractOperator
org.op4j.operators.impl.op.map.Level2MapSelectedEntriesValueOperator<I,K,V>
public final class Level2MapSelectedEntriesValueOperator<I,K,V>
Constructor Summary | |
---|---|
Level2MapSelectedEntriesValueOperator(Target target)
|
Method Summary | |
---|---|
Level1MapSelectedEntriesOperator<I,K,V> |
endOn()
Stops the selection of key/value. |
Level2MapSelectedEntriesValueOperator<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. |
Level2MapSelectedEntriesValueSelectedOperator<I,K,V> |
ifFalse(IFunction<? super V,Boolean> eval)
Selects only those targets for which the specified evaluator returns false. |
Level2MapSelectedEntriesValueSelectedOperator<I,K,V> |
ifNotNull()
Selects only those targets which are not null. |
Level2MapSelectedEntriesValueSelectedOperator<I,K,V> |
ifNotNullAndFalse(IFunction<? super V,Boolean> eval)
|
Level2MapSelectedEntriesValueSelectedOperator<I,K,V> |
ifNotNullAndTrue(IFunction<? super V,Boolean> eval)
|
Level2MapSelectedEntriesValueSelectedOperator<I,K,V> |
ifNull()
Selects only those targets which are null. |
Level2MapSelectedEntriesValueSelectedOperator<I,K,V> |
ifNullOrFalse(IFunction<? super V,Boolean> eval)
|
Level2MapSelectedEntriesValueSelectedOperator<I,K,V> |
ifNullOrTrue(IFunction<? super V,Boolean> eval)
|
Level2MapSelectedEntriesValueSelectedOperator<I,K,V> |
ifTrue(IFunction<? super V,Boolean> eval)
Selects only those targets for which the specified evaluator returns true. |
Level2MapSelectedEntriesValueOperator<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 |
---|
public Level2MapSelectedEntriesValueOperator(Target target)
Method Detail |
---|
public Level2MapSelectedEntriesValueSelectedOperator<I,K,V> ifTrue(IFunction<? super V,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 ILevel2MapSelectedEntriesValueOperator<I,K,V>
ifTrue
in interface SelectableMapEntryComponentOperator<V>
eval
- the evaluator to be used for selecting targets.
public Level2MapSelectedEntriesValueSelectedOperator<I,K,V> ifFalse(IFunction<? super V,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 ILevel2MapSelectedEntriesValueOperator<I,K,V>
ifFalse
in interface SelectableMapEntryComponentOperator<V>
eval
- the evaluator to be used for selecting targets.
public Level2MapSelectedEntriesValueSelectedOperator<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 ILevel2MapSelectedEntriesValueOperator<I,K,V>
ifNull
in interface SelectableMapEntryComponentOperator<V>
public Level2MapSelectedEntriesValueSelectedOperator<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 ILevel2MapSelectedEntriesValueOperator<I,K,V>
ifNotNull
in interface SelectableMapEntryComponentOperator<V>
public Level2MapSelectedEntriesValueSelectedOperator<I,K,V> ifNullOrFalse(IFunction<? super V,Boolean> eval)
ifNullOrFalse
in interface ILevel2MapSelectedEntriesValueOperator<I,K,V>
public Level2MapSelectedEntriesValueSelectedOperator<I,K,V> ifNotNullAndFalse(IFunction<? super V,Boolean> eval)
ifNotNullAndFalse
in interface ILevel2MapSelectedEntriesValueOperator<I,K,V>
public Level2MapSelectedEntriesValueSelectedOperator<I,K,V> ifNullOrTrue(IFunction<? super V,Boolean> eval)
ifNullOrTrue
in interface ILevel2MapSelectedEntriesValueOperator<I,K,V>
public Level2MapSelectedEntriesValueSelectedOperator<I,K,V> ifNotNullAndTrue(IFunction<? super V,Boolean> eval)
ifNotNullAndTrue
in interface ILevel2MapSelectedEntriesValueOperator<I,K,V>
public Level1MapSelectedEntriesOperator<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 ILevel2MapSelectedEntriesValueOperator<I,K,V>
endOn
in interface NavigatingMapEntryOperator
public Level2MapSelectedEntriesValueOperator<I,K,V> exec(IFunction<? super V,? extends V> 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 ILevel2MapSelectedEntriesValueOperator<I,K,V>
exec
in interface ExecutableSelectedOperator<V>
function
- the function to be executed
public Level2MapSelectedEntriesValueOperator<I,K,V> replaceWith(V replacement)
ReplaceableOperator
Replaces the current target object with the specified replacement.
replaceWith
in interface ILevel2MapSelectedEntriesValueOperator<I,K,V>
replaceWith
in interface ReplaceableOperator<V>
replacement
- the object which will replace the current target object.
public Map<K,V> get()
UniqOpOperator
Returns the target object this operator currently holds.
get
in interface UniqOpOperator<I,Map<K,V>>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |