|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConvertibleToMapOfListOperator<T>
This interface contains methods for conversions to map of array (array group map).
Method Summary | ||
---|---|---|
Operator |
coupleAndGroup()
Converts the target object to a map, by using the even elements (starting at 0) as keys, and the odd elements as values. |
|
|
toGroupMap(IFunction<? super T,K> keyFunction,
IFunction<? super T,V> valueFunction)
Converts the target object to a map by inputting the original target's elements into the specified map builder (a function returning map entries) which will create the resulting keys and values. |
|
|
toGroupMap(IFunction<? super T,Map.Entry<K,V>> mapBuilder)
Converts the target object to a map by inputting the original target's elements into the specified map builder (a function returning map entries) which will create the resulting keys and values. |
|
|
zipAndGroupKeys(K... keys)
Converts the target object to a map by using the original target's elements as values the specified objects as keys. |
|
|
zipAndGroupKeysBy(IFunction<? super T,K> keyEval)
Converts the target object to a map by using the original target's elements as values and applying an evaluator (keyEval) to them in order to obtain their corresponding keys. |
|
|
zipAndGroupKeysFrom(Collection<K> keys)
Converts the target object to a map by using the original target's elements as values the specified objects as keys. |
|
|
zipAndGroupKeysFrom(K[] keys)
Converts the target object to a map by using the original target's elements as values the specified objects as keys. |
|
|
zipAndGroupValues(V... values)
Converts the target object to a map by using the original target's elements as keys and the specified objects as values. |
|
|
zipAndGroupValuesBy(IFunction<? super T,V> valueEval)
Converts the target object to a map by using the original target's elements as keys and applying an evaluator (valueEval) to them in order to obtain their corresponding value. |
|
|
zipAndGroupValuesFrom(Collection<V> values)
Converts the target object to a map by using the original target's elements as keys and the specified objects as values. |
|
|
zipAndGroupValuesFrom(V[] values)
Converts the target object to a map by using the original target's elements as keys and the specified objects as values. |
Method Detail |
---|
<K,V> Operator toGroupMap(IFunction<? super T,Map.Entry<K,V>> mapBuilder)
Converts the target object to a map by inputting the original target's elements into the specified map builder (a function returning map entries) which will create the resulting keys and values. Values with the same key will be grouped into lists.
K
- the type of the keys that will be createdV
- the type of the values that will be createdmapBuilder
- the map builder function to be used
<K,V> Operator toGroupMap(IFunction<? super T,K> keyFunction, IFunction<? super T,V> valueFunction)
Converts the target object to a map by inputting the original target's elements into the specified map builder (a function returning map entries) which will create the resulting keys and values. Values with the same key will be grouped into lists.
K
- the type of the keys that will be createdV
- the type of the values that will be createdkeyFunction
- the function for building the keysvalueFunction
- the function for building the values
Operator coupleAndGroup()
Converts the target object to a map, by using the even elements (starting at 0) as keys, and the odd elements as values. Values with the same key will be grouped into lists.
<K> Operator zipAndGroupKeysBy(IFunction<? super T,K> keyEval)
Converts the target object to a map by using the original target's elements as values and applying an evaluator (keyEval) to them in order to obtain their corresponding keys. Values with the same key will be grouped into lists.
K
- the type of the keys that will be createdkeyEval
- the evaluator used for obtaining the keys
<V> Operator zipAndGroupValuesBy(IFunction<? super T,V> valueEval)
Converts the target object to a map by using the original target's elements as keys and applying an evaluator (valueEval) to them in order to obtain their corresponding value. Values with the same key will be grouped into lists.
V
- the type of the values that will be createdvalueEval
- the evaluator used for obtaining the values
<K> Operator zipAndGroupKeys(K... keys)
Converts the target object to a map by using the original target's elements as values the specified objects as keys. Values with the same key will be grouped into lists.
K
- the type of the keys that will be createdkeys
- the keys to be zipped
<V> Operator zipAndGroupValues(V... values)
Converts the target object to a map by using the original target's elements as keys and the specified objects as values. Values with the same key will be grouped into lists.
V
- the type of the values that will be createdvalues
- the values to be zipped
<K> Operator zipAndGroupKeysFrom(Collection<K> keys)
Converts the target object to a map by using the original target's elements as values the specified objects as keys. Values with the same key will be grouped into lists.
K
- the type of the keys that will be createdkeys
- the keys to be zipped
<V> Operator zipAndGroupValuesFrom(Collection<V> values)
Converts the target object to a map by using the original target's elements as keys and the specified objects as values. Values with the same key will be grouped into lists.
V
- the type of the values that will be createdvalues
- the values to be zipped
<K> Operator zipAndGroupKeysFrom(K[] keys)
Converts the target object to a map by using the original target's elements as values the specified objects as keys. Values with the same key will be grouped into lists.
K
- the type of the keys that will be createdkeys
- the keys to be zipped
<V> Operator zipAndGroupValuesFrom(V[] values)
Converts the target object to a map by using the original target's elements as keys and the specified objects as values. Values with the same key will be grouped into lists.
V
- the type of the values that will be createdvalues
- the values to be zipped
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |