in colocation/src/main/java/org/apache/geode_examples/colocation/Example.java [51:66]
public static Map<Integer, Customer> generateCustomers() {
String firstNames[] =
{"Albert", "Bob", "Charles", "Daniel", "Ethan", "Frank", "Gregory", "Henrik"};
String lastNames[] =
{"Anthony", "Barkley", "Chen", "Dalembert", "English", "French", "Gobert", "Hakanson"};
String emails[] = new String[firstNames.length];
for (int i = 0; i < firstNames.length; i++) {
emails[i] = firstNames[i].toLowerCase() + "." + lastNames[i].toLowerCase() + "@example.com";
}
Map<Integer, Customer> customers = new HashMap<Integer, Customer>();
for (int i = 0; i < firstNames.length; i++) {
customers.put(i + 1, new Customer(i + 1, firstNames[i], lastNames[i], emails[i]));
}
return customers;
}