/** * Converts all the values in the map extracting the property defined by the given argument. * @param map The map containing the values to be converted * @param argument An argument defined using the {@link Lambda#on(Class)} method * @return A Map containing the same keys of the original one and the argument's value extracted from the value * in the corresponding entry of the map */ public static <K, F, T> Map<K, T> convertMap(Map<K, F> map, T argument) { return convertMap(map, new ArgumentConverter<F, T>(argument)); }
/** * Converts all the values in this map using the given {@link Converter}. * @param converter The converter that specifies how each map's value must be converted * @return A Map containing the same keys of the original one and the value converted from the ones * in the corresponding entry of the map */ public <T> LambdaMap<K, T> convertValues(Converter<V, T> converter) { return new LambdaMap<K, T>(convertMap(innerMap, converter)); }
/** * Converts all the values in this map extracting the property defined by the given argument. * @param argument An argument defined using the {@link ch.lambdaj.Lambda#on(Class)} method method * @return A Map containing the same keys of the original one and the argument's value extracted from the value * in the corresponding entry of the map */ public <T> LambdaMap<K, T> convertValues(T argument) { return new LambdaMap<K, T>(convertMap(innerMap, argument)); }
Map<String, ExecutionPlan> dependencies = convertMap(filteredDependencies, new Converter<Executable, ExecutionPlan>() { @Override public ExecutionPlan convert(Executable compiledExecutable) {
Map<String, ExecutionPlan> dependencies = convertMap(filteredDependencies, converter); Collection<Executable> executables = new ArrayList<>(filteredDependencies.values()); executables.add(executable);
Map<String, ExecutionPlan> dependencies = convertMap(filteredDependencies, converter); Collection<Executable> executables = new ArrayList<>(filteredDependencies.values()); executables.add(executable);