/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;
import java.util.stream.Collectors;

/* Name of the class has to be "Main" only if the class is public. */
    class Ideone {
        public static void main(String[] args) throws java.lang.Exception {
            Map<String, String> map = new HashMap<>();

            map.put("PLACEHOLDER", "some_data1");
            map.put("Google", "some_data2");
            map.put("Facebook", "some_data3");
            map.put("Microsoft", "some_data4");

            Random rand = new Random();
            boolean condition = rand.nextBoolean();

            map = map.entrySet()
                .stream()
                .filter(entry -> "PLACEHOLDER".equals(entry.getKey()))
                .map(key -> {
                    if (condition) {
                        return "Apple";
                    } else {
                        return "Netflix";
                    }
            }).collect(Collectors.toMap(e -> e.getKey(), Map.Entry::getValue));
            
            System.out.println(map);
        }

    }