List of usage examples for org.springframework.util MultiValueMap forEach
default void forEach(BiConsumer<? super K, ? super V> action)
From source file:io.curly.bloodhound.query.PossibilitiesResolver.java
/** * Main method to convert the user inputted keys into our pattern * * @param raw the map containing not standardized keys * @return transformed new map with correct keys *///from w w w. ja v a2s .c o m @Override public MultiValueMap<String, String> resolve(MultiValueMap<String, String> raw) { Assert.notNull(raw, "Raw MultiValueMap must be not null!"); MultiValueMap<String, String> output = new LinkedMultiValueMap<>(raw.size()); raw.forEach((key, value) -> transform(output, key, value)); return output; }