Skip to content

Instantly share code, notes, and snippets.


pawelpluta/ Secret

Created Dec 20, 2020
What would you like to do?
Article: Law of Demeter - company delegating cost calculation
class Company {
private List<Department> departments;
Map<DepartmentCode, BigDecimal> costPerDepartment() {
return, Department::cost));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment