|
||||||||||
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.op.map.Level2MapSelectedEntriesKeyOperator<I,K,V>
public final class Level2MapSelectedEntriesKeyOperator<I,K,V>
Constructor Summary | |
---|---|
Level2MapSelectedEntriesKeyOperator(Target target)
|
Method Summary | |
---|---|
Level1MapSelectedEntriesOperator<I,K,V> |
endOn()
Stops the selection of key/value. |
Level2MapSelectedEntriesKeyOperator<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. |
Map<K,V> |
get()
Returns the target object this operator currently holds. |
Level2MapSelectedEntriesKeySelectedOperator<I,K,V> |
ifFalse(IFunction<? super K,Boolean> eval)
Selects only those targets for which the specified evaluator returns false. |
Level2MapSelectedEntriesKeySelectedOperator<I,K,V> |
ifNotNull()
Selects only those targets which are not null. |
Level2MapSelectedEntriesKeySelectedOperator<I,K,V> |
ifNotNullAndFalse(IFunction<? super K,Boolean> eval)
|
Level2MapSelectedEntriesKeySelectedOperator<I,K,V> |
ifNotNullAndTrue(IFunction<? super K,Boolean> eval)
|
Level2MapSelectedEntriesKeySelectedOperator<I,K,V> |
ifNull()
Selects only those targets which are null. |
Level2MapSelectedEntriesKeySelectedOperator<I,K,V> |
ifNullOrFalse(IFunction<? super K,Boolean> eval)
|
Level2MapSelectedEntriesKeySelectedOperator<I,K,V> |
ifNullOrTrue(IFunction<? super K,Boolean> eval)
|
Level2MapSelectedEntriesKeySelectedOperator<I,K,V> |
ifTrue(IFunction<? super K,Boolean> eval)
Selects only those targets for which the specified evaluator returns true. |
Level2MapSelectedEntriesKeyOperator<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 Level2MapSelectedEntriesKeyOperator(Target target)
Method Detail |
---|
public Level2MapSelectedEntriesKeySelectedOperator<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 ILevel2MapSelectedEntriesKeyOperator<I,K,V>
ifTrue
in interface SelectableMapEntryComponentOperator<K>
eval
- the evaluator to be used for selecting targets.
public Level2MapSelectedEntriesKeySelectedOperator<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 ILevel2MapSelectedEntriesKeyOperator<I,K,V>
ifFalse
in interface SelectableMapEntryComponentOperator<K>
eval
- the evaluator to be used for selecting targets.
public Level2MapSelectedEntriesKeySelectedOperator<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 ILevel2MapSelectedEntriesKeyOperator<I,K,V>
ifNull
in interface SelectableMapEntryComponentOperator<K>
public Level2MapSelectedEntriesKeySelectedOperator<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 ILevel2MapSelectedEntriesKeyOperator<I,K,V>
ifNotNull
in interface SelectableMapEntryComponentOperator<K>
public Level2MapSelectedEntriesKeySelectedOperator<I,K,V> ifNullOrFalse(IFunction<? super K,Boolean> eval)
ifNullOrFalse
in interface ILevel2MapSelectedEntriesKeyOperator<I,K,V>
public Level2MapSelectedEntriesKeySelectedOperator<I,K,V> ifNotNullAndFalse(IFunction<? super K,Boolean> eval)
ifNotNullAndFalse
in interface ILevel2MapSelectedEntriesKeyOperator<I,K,V>
public Level2MapSelectedEntriesKeySelectedOperator<I,K,V> ifNullOrTrue(IFunction<? super K,Boolean> eval)
ifNullOrTrue
in interface ILevel2MapSelectedEntriesKeyOperator<I,K,V>
public Level2MapSelectedEntriesKeySelectedOperator<I,K,V> ifNotNullAndTrue(IFunction<? super K,Boolean> eval)
ifNotNullAndTrue
in interface ILevel2MapSelectedEntriesKeyOperator<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 ILevel2MapSelectedEntriesKeyOperator<I,K,V>
endOn
in interface NavigatingMapEntryOperator
public Level2MapSelectedEntriesKeyOperator<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 ILevel2MapSelectedEntriesKeyOperator<I,K,V>
exec
in interface ExecutableSelectedOperator<K>
function
- the function to be executed
public Level2MapSelectedEntriesKeyOperator<I,K,V> replaceWith(K replacement)
ReplaceableOperator
Replaces the current target object with the specified replacement.
replaceWith
in interface ILevel2MapSelectedEntriesKeyOperator<I,K,V>
replaceWith
in interface ReplaceableOperator<K>
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 |