|
||||||||||
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.Level2MapEntriesKeyOperator<I,K,V>
public final class Level2MapEntriesKeyOperator<I,K,V>
Constructor Summary | |
---|---|
Level2MapEntriesKeyOperator(Target target)
|
Method Summary | ||
---|---|---|
|
castTo(org.javaruntype.type.Type<X> type)
Casts the operator's target as the specified type. |
|
Level1MapEntriesOperator<I,K,V> |
endOn()
Stops the selection of key/value. |
|
|
exec(IFunction<? super K,X> function)
Executes the specified function on the target object, creating a new operator containing the result of the execution. |
|
Level2MapEntriesKeyOperator<I,K,V> |
execIfFalse(IFunction<? super K,Boolean> eval,
IFunction<? super K,? extends K> function)
Executes a function in a way equivalent to ExecutableOperator.exec(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
|
execIfFalse(IFunction<? super K,Boolean> eval,
IFunction<? super K,X> function,
IFunction<? super K,X> elseFunction)
Executes a function in a way equivalent to ExecutableOperator.exec(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
Level2MapEntriesKeyOperator<I,K,V> |
execIfNotNull(IFunction<? super K,? extends K> function)
Executes a function in a way equivalent to ExecutableOperator.exec(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
|
execIfNotNull(IFunction<? super K,X> function,
IFunction<? super K,X> elseFunction)
Executes a function in a way equivalent to ExecutableOperator.exec(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
Level2MapEntriesKeyOperator<I,K,V> |
execIfNull(IFunction<? super K,? extends K> function)
Executes a function in a way equivalent to ExecutableOperator.exec(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
|
execIfNull(IFunction<? super K,X> function,
IFunction<? super K,X> elseFunction)
Executes a function in a way equivalent to ExecutableOperator.exec(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
Level2MapEntriesKeyOperator<I,K,V> |
execIfTrue(IFunction<? super K,Boolean> eval,
IFunction<? super K,? extends K> function)
Executes a function in a way equivalent to ExecutableOperator.exec(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
|
execIfTrue(IFunction<? super K,Boolean> eval,
IFunction<? super K,X> function,
IFunction<? super K,X> elseFunction)
Executes a function in a way equivalent to ExecutableOperator.exec(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
Map<K,V> |
get()
Returns the target object this operator currently holds. |
|
Level2MapEntriesKeySelectedOperator<I,K,V> |
ifFalse(IFunction<? super K,Boolean> eval)
Selects only those targets for which the specified evaluator returns false. |
|
Level2MapEntriesKeySelectedOperator<I,K,V> |
ifNotNull()
Selects only those targets which are not null. |
|
Level2MapEntriesKeySelectedOperator<I,K,V> |
ifNull()
Selects only those targets which are null. |
|
Level2MapEntriesKeySelectedOperator<I,K,V> |
ifTrue(IFunction<? super K,Boolean> eval)
Selects only those targets for which the specified evaluator returns true. |
|
Level2MapEntriesKeyOperator<I,K,V> |
replaceIfNullWith(K replacement)
|
|
Level2MapEntriesKeyOperator<I,K,V> |
replaceWith(K 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 Level2MapEntriesKeyOperator(Target target)
Method Detail |
---|
public Level1MapEntriesOperator<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 ILevel2MapEntriesKeyOperator<I,K,V>
endOn
in interface NavigatingMapEntryOperator
public <X> Level2MapEntriesKeyOperator<I,X,V> castTo(org.javaruntype.type.Type<X> type)
CastableToTypeOperator
Casts the operator's target as the specified type.
castTo
in interface ILevel2MapEntriesKeyOperator<I,K,V>
castTo
in interface CastableToTypeOperator<K>
X
- the type of the targetstype
- the type of targets
public Map<K,V> get()
UniqOpOperator
Returns the target object this operator currently holds.
get
in interface UniqOpOperator<I,Map<K,V>>
public Level2MapEntriesKeySelectedOperator<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 ILevel2MapEntriesKeyOperator<I,K,V>
ifTrue
in interface SelectableMapEntryComponentOperator<K>
eval
- the evaluator to be used for selecting targets.
public Level2MapEntriesKeySelectedOperator<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 ILevel2MapEntriesKeyOperator<I,K,V>
ifFalse
in interface SelectableMapEntryComponentOperator<K>
eval
- the evaluator to be used for selecting targets.
public Level2MapEntriesKeySelectedOperator<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 ILevel2MapEntriesKeyOperator<I,K,V>
ifNotNull
in interface SelectableMapEntryComponentOperator<K>
public Level2MapEntriesKeySelectedOperator<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 ILevel2MapEntriesKeyOperator<I,K,V>
ifNull
in interface SelectableMapEntryComponentOperator<K>
public <X> Level2MapEntriesKeyOperator<I,X,V> exec(IFunction<? super K,X> function)
ExecutableOperator
Executes the specified function on the target object, creating a new operator containing the result of the execution.
This function must be able to take as input an object of type T (the current operator's target type) and will return an object of type X, which will be from then on the new operator's target type.
exec
in interface ILevel2MapEntriesKeyOperator<I,K,V>
exec
in interface ExecutableOperator<K>
X
- the type of the result, and new type for the operatorfunction
- the function to be executed
public Level2MapEntriesKeyOperator<I,K,V> replaceWith(K replacement)
replaceWith
in interface ILevel2MapEntriesKeyOperator<I,K,V>
public Level2MapEntriesKeyOperator<I,K,V> replaceIfNullWith(K replacement)
replaceIfNullWith
in interface ILevel2MapEntriesKeyOperator<I,K,V>
public Level2MapEntriesKeyOperator<I,K,V> execIfFalse(IFunction<? super K,Boolean> eval, IFunction<? super K,? extends K> function)
ExecutableOperator
Executes a function in a way equivalent to ExecutableOperator.exec(IFunction)
but only
on selected elements, leaving all other elements untouched.
execIfFalse
in interface ILevel2MapEntriesKeyOperator<I,K,V>
execIfFalse
in interface ExecutableOperator<K>
eval
- the evaluation function used to select elementsfunction
- the function to be executed on the selected elements
public <X> Level2MapEntriesKeyOperator<I,X,V> execIfFalse(IFunction<? super K,Boolean> eval, IFunction<? super K,X> function, IFunction<? super K,X> elseFunction)
ExecutableOperator
Executes a function in a way equivalent to ExecutableOperator.exec(IFunction)
but only
on selected elements, leaving all other elements untouched.
execIfFalse
in interface ILevel2MapEntriesKeyOperator<I,K,V>
execIfFalse
in interface ExecutableOperator<K>
X
- the new type 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
public Level2MapEntriesKeyOperator<I,K,V> execIfNotNull(IFunction<? super K,? extends K> function)
ExecutableOperator
Executes a function in a way equivalent to ExecutableOperator.exec(IFunction)
but only
on selected elements, leaving all other elements untouched.
execIfNotNull
in interface ILevel2MapEntriesKeyOperator<I,K,V>
execIfNotNull
in interface ExecutableOperator<K>
function
- the function to be executed on the selected elements
public <X> Level2MapEntriesKeyOperator<I,X,V> execIfNotNull(IFunction<? super K,X> function, IFunction<? super K,X> elseFunction)
ExecutableOperator
Executes a function in a way equivalent to ExecutableOperator.exec(IFunction)
but only
on selected elements, leaving all other elements untouched.
execIfNotNull
in interface ILevel2MapEntriesKeyOperator<I,K,V>
execIfNotNull
in interface ExecutableOperator<K>
X
- the new type returned by the functionsfunction
- the function to be executed on the selected elementselseFunction
- the function to be executed on the non-selected elements
public Level2MapEntriesKeyOperator<I,K,V> execIfNull(IFunction<? super K,? extends K> function)
ExecutableOperator
Executes a function in a way equivalent to ExecutableOperator.exec(IFunction)
but only
on selected elements, leaving all other elements untouched.
execIfNull
in interface ILevel2MapEntriesKeyOperator<I,K,V>
execIfNull
in interface ExecutableOperator<K>
function
- the function to be executed on the selected elements
public <X> Level2MapEntriesKeyOperator<I,X,V> execIfNull(IFunction<? super K,X> function, IFunction<? super K,X> elseFunction)
ExecutableOperator
Executes a function in a way equivalent to ExecutableOperator.exec(IFunction)
but only
on selected elements, leaving all other elements untouched.
execIfNull
in interface ILevel2MapEntriesKeyOperator<I,K,V>
execIfNull
in interface ExecutableOperator<K>
X
- the new type returned by the functionsfunction
- the function to be executed on the selected elementselseFunction
- the function to be executed on the non-selected elements
public Level2MapEntriesKeyOperator<I,K,V> execIfTrue(IFunction<? super K,Boolean> eval, IFunction<? super K,? extends K> function)
ExecutableOperator
Executes a function in a way equivalent to ExecutableOperator.exec(IFunction)
but only
on selected elements, leaving all other elements untouched.
execIfTrue
in interface ILevel2MapEntriesKeyOperator<I,K,V>
execIfTrue
in interface ExecutableOperator<K>
eval
- the evaluation function used to select elementsfunction
- the function to be executed on the selected elements
public <X> Level2MapEntriesKeyOperator<I,X,V> execIfTrue(IFunction<? super K,Boolean> eval, IFunction<? super K,X> function, IFunction<? super K,X> elseFunction)
ExecutableOperator
Executes a function in a way equivalent to ExecutableOperator.exec(IFunction)
but only
on selected elements, leaving all other elements untouched.
execIfTrue
in interface ILevel2MapEntriesKeyOperator<I,K,V>
execIfTrue
in interface ExecutableOperator<K>
X
- the new type 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 |