-
Notifications
You must be signed in to change notification settings - Fork 274
Expand file tree
/
Copy pathEkartDataBase.java
More file actions
21 lines (15 loc) · 730 Bytes
/
Copy pathEkartDataBase.java
File metadata and controls
21 lines (15 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package com.javatechie;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
public class EkartDataBase {
public static List<Customer> getAll() {
return Stream.of(
new Customer(101, "john", "john@gmail.com", Arrays.asList("397937955", "21654725")),
new Customer(102, "smith", "smith@gmail.com", Arrays.asList("89563865", "2487238947")),
new Customer(103, "peter", "peter@gmail.com", Arrays.asList("38946328654", "3286487236")),
new Customer(104, "kely", "kely@gmail.com", Arrays.asList("389246829364", "948609467"))
).collect(Collectors.toList());
}
}