org.op4j.operators.intf.map
Interface ILevel0BuildingMapOperator<I,K,V>

All Superinterfaces:
BuildingMapOperator<I,K,V>, CastableToMapOperator, ExecutableMapOperator<K,V>, ExtractableMapOperator<K,V>, GenerizableOperator<I,Map<K,V>>, ModifiableMapOperator<K,V>, NavigableMapOperator<K,V>, Operator, ReplaceableIfNullOperator<Map<K,V>>, ReplaceableOperator<Map<K,V>>, ReversibleOperator<Map.Entry<K,V>>, SelectableOperator<Map<K,V>>, SortableOperator<Map.Entry<K,V>>, TotalizableOperator<I,Map.Entry<K,V>>, UniqOperator<Map<K,V>>
All Known Implementing Classes:
Level0BuildingMapOperator

public interface ILevel0BuildingMapOperator<I,K,V>
extends UniqOperator<Map<K,V>>, NavigableMapOperator<K,V>, CastableToMapOperator, SortableOperator<Map.Entry<K,V>>, ExecutableMapOperator<K,V>, ModifiableMapOperator<K,V>, ExtractableMapOperator<K,V>, SelectableOperator<Map<K,V>>, ReplaceableOperator<Map<K,V>>, ReplaceableIfNullOperator<Map<K,V>>, GenerizableOperator<I,Map<K,V>>, TotalizableOperator<I,Map.Entry<K,V>>, BuildingMapOperator<I,K,V>, ReversibleOperator<Map.Entry<K,V>>

Since:
1.0
Author:
Daniel Fernández

Method Summary
 ILevel0GenericUniqOperator<I,Boolean> all(IFunction<? super Map.Entry<K,V>,Boolean> eval)
           
 ILevel0BuildingMapOperator<I,K,V> and(K key, V value)
           Adds a new entry to the map being built.
 ILevel0GenericUniqOperator<I,Boolean> any(IFunction<? super Map.Entry<K,V>,Boolean> eval)
           
<X,Y> ILevel0MapOperator<I,X,Y>
castToMapOf(org.javaruntype.type.Type<X> keyType, org.javaruntype.type.Type<Y> valueType)
           Casts the operator's target as a map of the specified types.
<X> ILevel0GenericUniqOperator<I,X>
exec(IFunction<? super Map<K,V>,X> function)
           Executes the specified function on the target object, creating a new generic operator containing the result of the execution and setting the new operator type to the one specified.
<X,Y> ILevel0MapOperator<I,X,Y>
execAsMap(IFunction<? super Map<K,V>,? extends Map<X,Y>> function)
           Executes the specified function on the target map, creating a new map operator containing the result of the execution.
 ILevel0MapOperator<I,K,V> execIfFalseAsMap(IFunction<? super Map<K,V>,Boolean> eval, IFunction<? super Map<K,V>,? extends Map<? extends K,? extends V>> function)
           Executes a function in a way equivalent to ExecutableMapOperator.execAsMap(IFunction) but only on selected elements, leaving all other elements untouched.
<X,Y> ILevel0MapOperator<I,X,Y>
execIfFalseAsMap(IFunction<? super Map<K,V>,Boolean> eval, IFunction<? super Map<K,V>,? extends Map<X,Y>> function, IFunction<? super Map<K,V>,? extends Map<X,Y>> elseFunction)
           Executes a function in a way equivalent to ExecutableMapOperator.execAsMap(IFunction) but only on selected elements, leaving all other elements untouched.
 ILevel0MapOperator<I,K,V> execIfNotNullAsMap(IFunction<? super Map<K,V>,? extends Map<? extends K,? extends V>> function)
           Executes a function in a way equivalent to ExecutableMapOperator.execAsMap(IFunction) but only on selected elements, leaving all other elements untouched.
<X,Y> ILevel0MapOperator<I,X,Y>
execIfNotNullAsMap(IFunction<? super Map<K,V>,? extends Map<X,Y>> function, IFunction<? super Map<K,V>,? extends Map<X,Y>> elseFunction)
           Executes a function in a way equivalent to ExecutableMapOperator.execAsMap(IFunction) but only on selected elements, leaving all other elements untouched.
 ILevel0MapOperator<I,K,V> execIfNullAsMap(IFunction<? super Map<K,V>,? extends Map<? extends K,? extends V>> function)
           Executes a function in a way equivalent to ExecutableMapOperator.execAsMap(IFunction) but only on selected elements, leaving all other elements untouched.
<X,Y> ILevel0MapOperator<I,X,Y>
execIfNullAsMap(IFunction<? super Map<K,V>,? extends Map<X,Y>> function, IFunction<? super Map<K,V>,? extends Map<X,Y>> elseFunction)
           Executes a function in a way equivalent to ExecutableMapOperator.execAsMap(IFunction) but only on selected elements, leaving all other elements untouched.
 ILevel0MapOperator<I,K,V> execIfTrueAsMap(IFunction<? super Map<K,V>,Boolean> eval, IFunction<? super Map<K,V>,? extends Map<? extends K,? extends V>> function)
           Executes a function in a way equivalent to ExecutableMapOperator.execAsMap(IFunction) but only on selected elements, leaving all other elements untouched.
<X,Y> ILevel0MapOperator<I,X,Y>
execIfTrueAsMap(IFunction<? super Map<K,V>,Boolean> eval, IFunction<? super Map<K,V>,? extends Map<X,Y>> function, IFunction<? super Map<K,V>,? extends Map<X,Y>> elseFunction)
           Executes a function in a way equivalent to ExecutableMapOperator.execAsMap(IFunction) but only on selected elements, leaving all other elements untouched.
 ILevel0SetOperator<I,K> extractKeys()
           Extracts only the keys of the map (discarding values) and creates an operator which will hold these keys as a target object of type Set.
 ILevel0ListOperator<I,V> extractValues()
           Extracts only the values of the map (discarding keys) and creates an operator which will hold these values as a target object of type List.
 ILevel1MapEntriesOperator<I,K,V> forEachEntry()
           Iterates the target map's entries.
 ILevel0GenericUniqOperator<I,Map<K,V>> generic()
           Converts the specialized structure operator into generic operators (with no specific methods for structures - e.g. forEach())
 ILevel0MapSelectedOperator<I,K,V> ifFalse(IFunction<? super Map<K,V>,Boolean> eval)
           Selects only those targets for which the specified evaluator returns false.
 ILevel0MapSelectedOperator<I,K,V> ifNotNull()
           Selects only those targets which are not null.
 ILevel0MapSelectedOperator<I,K,V> ifNull()
           Selects only those targets which are null.
 ILevel0MapSelectedOperator<I,K,V> ifTrue(IFunction<? super Map<K,V>,Boolean> eval)
           Selects only those targets for which the specified evaluator returns true.
 ILevel0MapOperator<I,K,V> insert(int position, K newKey, V newValue)
           Inserts a new entry with the specified key and value into the specified position (starting in 0) of the target map.
 ILevel0MapOperator<I,K,V> insertAll(int position, Map<K,V> map)
           Inserts all the entries in the specified map to the target map, in the specified position.
<X,Y> ILevel0MapOperator<I,X,Y>
of(org.javaruntype.type.Type<X> keyType, org.javaruntype.type.Type<Y> valueType)
           Casts the operator's target as a map of the specified types.
 ILevel0MapOperator<I,K,V> put(K newKey, V newValue)
           Adds a new entry with the specified key and value at the end of the target map.
 ILevel0MapOperator<I,K,V> putAll(Map<K,V> map)
           Adds all the entries in the specified map to the target map.
 ILevel0MapOperator<I,K,V> removeAllFalse(IFunction<? super Map.Entry<K,V>,Boolean> eval)
           Removes from the target map all the entries which evaluate as false using the specified evaluator.
 ILevel0MapOperator<I,K,V> removeAllKeys(K... keys)
           Removes from the target map all entries which keys match the ones specified.
 ILevel0MapOperator<I,K,V> removeAllKeysNot(K... keys)
           Removes from the target map all entries except those which keys match the ones specified.
 ILevel0MapOperator<I,K,V> removeAllTrue(IFunction<? super Map.Entry<K,V>,Boolean> eval)
           Removes from the target map all the entries which evaluate as true using the specified evaluator.
 ILevel0MapOperator<I,K,V> replaceIfNullWith(Map<K,V> replacement)
           Replaces the current target object with the specified replacement if the current target is null.
 ILevel0MapOperator<I,K,V> replaceWith(Map<K,V> replacement)
           Replaces the current target object with the specified replacement.
 ILevel0MapOperator<I,K,V> reverse()
           Reverses the elements of the structure.
 ILevel0MapOperator<I,K,V> sort()
           Sorts the elements of the structure according to their natural ordering.
 ILevel0MapOperator<I,K,V> sort(Comparator<? super Map.Entry<K,V>> comparator)
           Sorts the elements of the structure according to the order induced by the specified comparator.
 ILevel0MapOperator<I,K,V> sortBy(IFunction<? super Map.Entry<K,V>,?> by)
           Sorts the elements of the structure according to the result of executing the specified function.
 

Method Detail

and

ILevel0BuildingMapOperator<I,K,V> and(K key,
                                      V value)
Description copied from interface: BuildingMapOperator

Adds a new entry to the map being built.

Specified by:
and in interface BuildingMapOperator<I,K,V>
Parameters:
key - the key to be added
value - the value to be added
Returns:
an operator on the resulting map

ifTrue

ILevel0MapSelectedOperator<I,K,V> ifTrue(IFunction<? super Map<K,V>,Boolean> eval)
Description copied from interface: SelectableOperator

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.

Specified by:
ifTrue in interface SelectableOperator<Map<K,V>>
Parameters:
eval - the evaluator to be used for selecting targets.
Returns:
an operator which will execute all subsequent operations only on the selected target objects.

ifFalse

ILevel0MapSelectedOperator<I,K,V> ifFalse(IFunction<? super Map<K,V>,Boolean> eval)
Description copied from interface: SelectableOperator

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.

Specified by:
ifFalse in interface SelectableOperator<Map<K,V>>
Parameters:
eval - the evaluator to be used for selecting targets.
Returns:
an operator which will execute all subsequent operations only on the selected target objects.

ifNull

ILevel0MapSelectedOperator<I,K,V> ifNull()
Description copied from interface: SelectableOperator

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.

Specified by:
ifNull in interface SelectableOperator<Map<K,V>>
Returns:
an operator which will execute all subsequent operations only on the selected target objects.

ifNotNull

ILevel0MapSelectedOperator<I,K,V> ifNotNull()
Description copied from interface: SelectableOperator

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.

Specified by:
ifNotNull in interface SelectableOperator<Map<K,V>>
Returns:
an operator which will execute all subsequent operations only on the selected target objects.

forEachEntry

ILevel1MapEntriesOperator<I,K,V> forEachEntry()
Description copied from interface: NavigableMapOperator

Iterates the target map's entries. After executing this method, any further operations will be applied on each of the map entries (java.util.Map.Entry objects) until an "endFor()" method is called.

Specified by:
forEachEntry in interface NavigableMapOperator<K,V>
Returns:
an operator which will execute all operations on each entry of the map.

sort

ILevel0MapOperator<I,K,V> sort()
Description copied from interface: SortableOperator

Sorts the elements of the structure according to their natural ordering.

Specified by:
sort in interface SortableOperator<Map.Entry<K,V>>
Returns:
an operator containing the sorted structure as target object.

sort

ILevel0MapOperator<I,K,V> sort(Comparator<? super Map.Entry<K,V>> comparator)
Description copied from interface: SortableOperator

Sorts the elements of the structure according to the order induced by the specified comparator.

Specified by:
sort in interface SortableOperator<Map.Entry<K,V>>
Parameters:
comparator - the comparator to be used.
Returns:
an operator containing the sorted structure as target object.

sortBy

ILevel0MapOperator<I,K,V> sortBy(IFunction<? super Map.Entry<K,V>,?> by)
Description copied from interface: SortableOperator

Sorts the elements of the structure according to the result of executing the specified function.

Specified by:
sortBy in interface SortableOperator<Map.Entry<K,V>>
Parameters:
by - the function to be executed in order to obtain the compared object
Returns:
an operator containing the sorted structure as target object.

put

ILevel0MapOperator<I,K,V> put(K newKey,
                              V newValue)
Description copied from interface: ModifiableMapOperator

Adds a new entry with the specified key and value at the end of the target map.

The original target object is not modified, but copied instead.

Specified by:
put in interface ModifiableMapOperator<K,V>
Parameters:
newKey - the key for the new entry to be added
newValue - the value for the new entry to be added
Returns:
an operator holding the modified map

insert

ILevel0MapOperator<I,K,V> insert(int position,
                                 K newKey,
                                 V newValue)
Description copied from interface: ModifiableMapOperator

Inserts a new entry with the specified key and value into the specified position (starting in 0) of the target map.

The original target object is not modified, but copied instead.

Specified by:
insert in interface ModifiableMapOperator<K,V>
Parameters:
position - the position into which the new entry will be inserted
newKey - the key for the new entry to be insert
newValue - the value for the new entry to be insert
Returns:
an operator holding the modified map

putAll

ILevel0MapOperator<I,K,V> putAll(Map<K,V> map)
Description copied from interface: ModifiableMapOperator

Adds all the entries in the specified map to the target map.

The original target object is not modified, but copied instead.

Specified by:
putAll in interface ModifiableMapOperator<K,V>
Parameters:
map - the map containing the entries to be added.
Returns:
an operator holding the modified map

insertAll

ILevel0MapOperator<I,K,V> insertAll(int position,
                                    Map<K,V> map)
Description copied from interface: ModifiableMapOperator

Inserts all the entries in the specified map to the target map, in the specified position.

The original target object is not modified, but copied instead.

Specified by:
insertAll in interface ModifiableMapOperator<K,V>
Parameters:
position - the position into which the entries will be added.
map - the map containing the entries to be inserted.
Returns:
an operator holding the modified map

removeAllKeys

ILevel0MapOperator<I,K,V> removeAllKeys(K... keys)
Description copied from interface: ModifiableMapOperator

Removes from the target map all entries which keys match the ones specified.

The original target object is not modified, but copied instead.

Specified by:
removeAllKeys in interface ModifiableMapOperator<K,V>
Parameters:
keys - the keys which have to be removed.
Returns:
an operator holding the modified map

removeAllTrue

ILevel0MapOperator<I,K,V> removeAllTrue(IFunction<? super Map.Entry<K,V>,Boolean> eval)
Description copied from interface: ModifiableMapOperator

Removes from the target map all the entries which evaluate as true using the specified evaluator.

The original target object is not modified, but copied instead.

Specified by:
removeAllTrue in interface ModifiableMapOperator<K,V>
Parameters:
eval - the evaluator to be used, which must return Boolean
Returns:
an operator holding the modified map

removeAllFalse

ILevel0MapOperator<I,K,V> removeAllFalse(IFunction<? super Map.Entry<K,V>,Boolean> eval)
Description copied from interface: ModifiableMapOperator

Removes from the target map all the entries which evaluate as false using the specified evaluator.

The original target object is not modified, but copied instead.

Specified by:
removeAllFalse in interface ModifiableMapOperator<K,V>
Parameters:
eval - the evaluator to be used, which must return Boolean
Returns:
an operator holding the modified map

removeAllKeysNot

ILevel0MapOperator<I,K,V> removeAllKeysNot(K... keys)
Description copied from interface: ModifiableMapOperator

Removes from the target map all entries except those which keys match the ones specified.

The original target object is not modified, but copied instead.

Specified by:
removeAllKeysNot in interface ModifiableMapOperator<K,V>
Parameters:
keys - the keys which have to be kept.
Returns:
an operator holding the modified map

extractKeys

ILevel0SetOperator<I,K> extractKeys()
Description copied from interface: ExtractableMapOperator

Extracts only the keys of the map (discarding values) and creates an operator which will hold these keys as a target object of type Set.

Specified by:
extractKeys in interface ExtractableMapOperator<K,V>
Returns:
an operator with the set of keys as a target object

extractValues

ILevel0ListOperator<I,V> extractValues()
Description copied from interface: ExtractableMapOperator

Extracts only the values of the map (discarding keys) and creates an operator which will hold these values as a target object of type List.

Specified by:
extractValues in interface ExtractableMapOperator<K,V>
Returns:
an operator with the list of values as a target object

generic

ILevel0GenericUniqOperator<I,Map<K,V>> generic()
Description copied from interface: GenerizableOperator

Converts the specialized structure operator into generic operators (with no specific methods for structures - e.g. forEach())

Specified by:
generic in interface GenerizableOperator<I,Map<K,V>>
Returns:
a generic operator on the same target object

replaceWith

ILevel0MapOperator<I,K,V> replaceWith(Map<K,V> replacement)
Description copied from interface: ReplaceableOperator

Replaces the current target object with the specified replacement.

Specified by:
replaceWith in interface ReplaceableOperator<Map<K,V>>
Parameters:
replacement - the object which will replace the current target object.
Returns:
an operator containing the replacement object as target.

replaceIfNullWith

ILevel0MapOperator<I,K,V> replaceIfNullWith(Map<K,V> replacement)
Description copied from interface: ReplaceableIfNullOperator

Replaces the current target object with the specified replacement if the current target is null.

Specified by:
replaceIfNullWith in interface ReplaceableIfNullOperator<Map<K,V>>
Parameters:
replacement - the object which will replace the current target object if target is null.
Returns:
an operator containing the original target object if it was not null, or the new one if null.

exec

<X> ILevel0GenericUniqOperator<I,X> exec(IFunction<? super Map<K,V>,X> function)
Description copied from interface: ExecutableMapOperator

Executes the specified function on the target object, creating a new generic operator containing the result of the execution and setting the new operator type to the one specified.

Specified by:
exec in interface ExecutableMapOperator<K,V>
Type Parameters:
X - the type of the result object
Parameters:
function - the function to be executed
Returns:
an operator on the results of function execution

execAsMap

<X,Y> ILevel0MapOperator<I,X,Y> execAsMap(IFunction<? super Map<K,V>,? extends Map<X,Y>> function)
Description copied from interface: ExecutableMapOperator

Executes the specified function on the target map, creating a new map 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.

Specified by:
execAsMap in interface ExecutableMapOperator<K,V>
Type Parameters:
X - the type of the resulting keys
Y - the type of the resulting values
Parameters:
function - the function to be executed
Returns:
an operator on the results of function execution

execIfNotNullAsMap

ILevel0MapOperator<I,K,V> execIfNotNullAsMap(IFunction<? super Map<K,V>,? extends Map<? extends K,? extends V>> function)
Description copied from interface: ExecutableMapOperator

Executes a function in a way equivalent to ExecutableMapOperator.execAsMap(IFunction) but only on selected elements, leaving all other elements untouched.

Specified by:
execIfNotNullAsMap in interface ExecutableMapOperator<K,V>
Parameters:
function - the function to be executed on the selected elements
Returns:
an operator on the results of function execution

execIfNullAsMap

ILevel0MapOperator<I,K,V> execIfNullAsMap(IFunction<? super Map<K,V>,? extends Map<? extends K,? extends V>> function)
Description copied from interface: ExecutableMapOperator

Executes a function in a way equivalent to ExecutableMapOperator.execAsMap(IFunction) but only on selected elements, leaving all other elements untouched.

Specified by:
execIfNullAsMap in interface ExecutableMapOperator<K,V>
Parameters:
function - the function to be executed on the selected elements
Returns:
an operator on the results of function execution

execIfTrueAsMap

ILevel0MapOperator<I,K,V> execIfTrueAsMap(IFunction<? super Map<K,V>,Boolean> eval,
                                          IFunction<? super Map<K,V>,? extends Map<? extends K,? extends V>> function)
Description copied from interface: ExecutableMapOperator

Executes a function in a way equivalent to ExecutableMapOperator.execAsMap(IFunction) but only on selected elements, leaving all other elements untouched.

Specified by:
execIfTrueAsMap in interface ExecutableMapOperator<K,V>
Parameters:
eval - the evaluation function used to select elements
function - the function to be executed on the selected elements
Returns:
an operator on the results of function execution

execIfFalseAsMap

ILevel0MapOperator<I,K,V> execIfFalseAsMap(IFunction<? super Map<K,V>,Boolean> eval,
                                           IFunction<? super Map<K,V>,? extends Map<? extends K,? extends V>> function)
Description copied from interface: ExecutableMapOperator

Executes a function in a way equivalent to ExecutableMapOperator.execAsMap(IFunction) but only on selected elements, leaving all other elements untouched.

Specified by:
execIfFalseAsMap in interface ExecutableMapOperator<K,V>
Parameters:
eval - the evaluation function used to select elements
function - the function to be executed on the selected elements
Returns:
an operator on the results of function execution

execIfNotNullAsMap

<X,Y> ILevel0MapOperator<I,X,Y> execIfNotNullAsMap(IFunction<? super Map<K,V>,? extends Map<X,Y>> function,
                                                   IFunction<? super Map<K,V>,? extends Map<X,Y>> elseFunction)
Description copied from interface: ExecutableMapOperator

Executes a function in a way equivalent to ExecutableMapOperator.execAsMap(IFunction) but only on selected elements, leaving all other elements untouched.

Specified by:
execIfNotNullAsMap in interface ExecutableMapOperator<K,V>
Type Parameters:
X - the new type of the keys returned by the functions
Y - the new type of the values returned by the functions
Parameters:
function - the function to be executed on the selected elements
elseFunction - the function to be executed on the non-selected elements
Returns:
an operator on the results of function execution

execIfNullAsMap

<X,Y> ILevel0MapOperator<I,X,Y> execIfNullAsMap(IFunction<? super Map<K,V>,? extends Map<X,Y>> function,
                                                IFunction<? super Map<K,V>,? extends Map<X,Y>> elseFunction)
Description copied from interface: ExecutableMapOperator

Executes a function in a way equivalent to ExecutableMapOperator.execAsMap(IFunction) but only on selected elements, leaving all other elements untouched.

Specified by:
execIfNullAsMap in interface ExecutableMapOperator<K,V>
Type Parameters:
X - the new type of the keys returned by the functions
Y - the new type of the values returned by the functions
Parameters:
function - the function to be executed on the selected elements
elseFunction - the function to be executed on the non-selected elements
Returns:
an operator on the results of function execution

execIfTrueAsMap

<X,Y> ILevel0MapOperator<I,X,Y> execIfTrueAsMap(IFunction<? super Map<K,V>,Boolean> eval,
                                                IFunction<? super Map<K,V>,? extends Map<X,Y>> function,
                                                IFunction<? super Map<K,V>,? extends Map<X,Y>> elseFunction)
Description copied from interface: ExecutableMapOperator

Executes a function in a way equivalent to ExecutableMapOperator.execAsMap(IFunction) but only on selected elements, leaving all other elements untouched.

Specified by:
execIfTrueAsMap in interface ExecutableMapOperator<K,V>
Type Parameters:
X - the new type of the keys returned by the functions
Y - the new type of the values returned by the functions
Parameters:
eval - the evaluation function used to select elements
function - the function to be executed on the selected elements
elseFunction - the function to be executed on the non-selected elements
Returns:
an operator on the results of function execution

execIfFalseAsMap

<X,Y> ILevel0MapOperator<I,X,Y> execIfFalseAsMap(IFunction<? super Map<K,V>,Boolean> eval,
                                                 IFunction<? super Map<K,V>,? extends Map<X,Y>> function,
                                                 IFunction<? super Map<K,V>,? extends Map<X,Y>> elseFunction)
Description copied from interface: ExecutableMapOperator

Executes a function in a way equivalent to ExecutableMapOperator.execAsMap(IFunction) but only on selected elements, leaving all other elements untouched.

Specified by:
execIfFalseAsMap in interface ExecutableMapOperator<K,V>
Type Parameters:
X - the new type of the keys returned by the functions
Y - the new type of the values returned by the functions
Parameters:
eval - the evaluation function used to select elements
function - the function to be executed on the selected elements
elseFunction - the function to be executed on the non-selected elements
Returns:
an operator on the results of function execution

of

<X,Y> ILevel0MapOperator<I,X,Y> of(org.javaruntype.type.Type<X> keyType,
                                   org.javaruntype.type.Type<Y> valueType)
Description copied from interface: CastableToMapOperator

Casts the operator's target as a map of the specified types.

Specified by:
of in interface CastableToMapOperator
Type Parameters:
X - the type for the map's keys
Y - the type for the map's values
Parameters:
keyType - the type for the map's keys
valueType - the type for the map's values
Returns:
the resulting map

castToMapOf

<X,Y> ILevel0MapOperator<I,X,Y> castToMapOf(org.javaruntype.type.Type<X> keyType,
                                            org.javaruntype.type.Type<Y> valueType)
Description copied from interface: CastableToMapOperator

Casts the operator's target as a map of the specified types.

Specified by:
castToMapOf in interface CastableToMapOperator
Type Parameters:
X - the type for the map's keys
Y - the type for the map's values
Parameters:
keyType - the type for the map's keys
valueType - the type for the map's values
Returns:
the resulting map

any

ILevel0GenericUniqOperator<I,Boolean> any(IFunction<? super Map.Entry<K,V>,Boolean> eval)
Specified by:
any in interface TotalizableOperator<I,Map.Entry<K,V>>

all

ILevel0GenericUniqOperator<I,Boolean> all(IFunction<? super Map.Entry<K,V>,Boolean> eval)
Specified by:
all in interface TotalizableOperator<I,Map.Entry<K,V>>

reverse

ILevel0MapOperator<I,K,V> reverse()
Description copied from interface: ReversibleOperator

Reverses the elements of the structure.

Specified by:
reverse in interface ReversibleOperator<Map.Entry<K,V>>
Returns:
an operator containing the reversed structure as target object.


Copyright © 2012 The OP4J team. All Rights Reserved.