|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BuilderOperator<I,T>
This interface defines methods for the building of structures from generic non-multi operators.
Method Summary | ||
---|---|---|
ILevel0ArrayOperator<I,T> |
intoSingletonArrayOf(org.javaruntype.type.Type<T> type)
Builds an array of the specified type containing the operator's targets. |
|
ILevel0ListOperator<I,T> |
intoSingletonList()
Builds a list containing the operator's targets. |
|
|
intoSingletonMap(IFunction<? super T,Map.Entry<K,V>> mapBuilder)
Builds a map by inputting the operator's targets into a map builder object (a function returning map entries), which is in charge of creating the corresponding key and value for each original target. |
|
ILevel0SetOperator<I,T> |
intoSingletonSet()
Builds a set containing the operator's targets. |
|
|
zipKey(K key)
Builds a one-entry map using the operator's target as a value, and the specified object as a key. |
|
|
zipKeyBy(IFunction<? super T,K> keyEval)
Builds a one-entry map using the operator's target as a value, and the result of executing the keyEval evaluator on the target as a key. |
|
|
zipValue(V value)
Builds a one-entry map using the operator's target as a key, and the specified object as a value. |
|
|
zipValueBy(IFunction<? super T,V> valueEval)
Builds a one-entry map using the operator's target as a key, and the result of executing the valueEval evaluator on the target as a value. |
Method Detail |
---|
ILevel0ListOperator<I,T> intoSingletonList()
Builds a list containing the operator's targets.
ILevel0SetOperator<I,T> intoSingletonSet()
Builds a set containing the operator's targets.
ILevel0ArrayOperator<I,T> intoSingletonArrayOf(org.javaruntype.type.Type<T> type)
Builds an array of the specified type containing the operator's targets.
type
- the type if which the array will be instantiated
<K> ILevel0MapOperator<I,K,T> zipKeyBy(IFunction<? super T,K> keyEval)
Builds a one-entry map using the operator's target as a value, and the result of executing the keyEval evaluator on the target as a key.
K
- the type of the new key, resulting from evaluating keyEvalkeyEval
- the evaluator to be used for obtaining the key
<V> ILevel0MapOperator<I,T,V> zipValueBy(IFunction<? super T,V> valueEval)
Builds a one-entry map using the operator's target as a key, and the result of executing the valueEval evaluator on the target as a value.
V
- the type of the new value, resulting from evaluating valueEvalvalueEval
- the evaluator to be used for obtaining the value
<K> ILevel0MapOperator<I,K,T> zipKey(K key)
Builds a one-entry map using the operator's target as a value, and the specified object as a key.
K
- the type of the new key, resulting from evaluating keyEvalkey
- the key to be zipped
<V> ILevel0MapOperator<I,T,V> zipValue(V value)
Builds a one-entry map using the operator's target as a key, and the specified object as a value.
V
- the type of the new value, resulting from evaluating valueEvalvalue
- the value to be zipped
<K,V> ILevel0MapOperator<I,K,V> intoSingletonMap(IFunction<? super T,Map.Entry<K,V>> mapBuilder)
Builds a map by inputting the operator's targets into a map builder object (a function returning map entries), which is in charge of creating the corresponding key and value for each original target. If two values have the same key, all of them but the last to be evaluated will be overwritten.
K
- the type of the keys returned by the map builderV
- the type of the values returned by the map buildermapBuilder
- the map builder function
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |