Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@machielg
Last active August 5, 2017 13:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save machielg/8c180c417be3adc0c13bc53b23d94c2b to your computer and use it in GitHub Desktop.
Save machielg/8c180c417be3adc0c13bc53b23d94c2b to your computer and use it in GitHub Desktop.
interface Customer {
String getName();
String getId();
}
interface CustomerRepository {
Stream<Customer> allCustomers();
}
interface Order {
DateTime getOrderDate();
Integer getOrderAmount();
}
interface OrderRepository {
List<Order> getOrdersForCustomer(String customerId);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment